/* EPR API Documentation Styles */

/* CSS Variables */
:root {
    /* EPR Brand Colors */
    --epr-primary: #93C851;
    --epr-primary-dark: #7fb340;
    --epr-primary-light: #a5d366;
    
    /* Neutral Colors */
    --epr-white: #ffffff;
    --epr-background: #f7f9f4;
    --epr-background-alt: #f0f3eb;
    --epr-border: #e8f0e2;
    --epr-text-primary: #3d4f2f;
    --epr-text-secondary: #6b7a5a;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    
    /* Shadows */
    --epr-shadow: 0 2px 8px rgba(147, 200, 81, 0.08);
    --epr-shadow-hover: 0 4px 16px rgba(147, 200, 81, 0.15);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary) !important;
    background-color: var(--epr-background) !important;
    color: var(--epr-text-primary) !important;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    display: flex;
    height: 100vh;
    background-color: var(--epr-background) !important;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-primary) !important;
    transition: all 0.2s ease;
}

/* HTTP Status Codes */
.status-200 { background-color: rgba(87, 242, 135, 0.2); color: #23a55a; }
.status-201 { background-color: rgba(87, 242, 135, 0.2); color: #23a55a; }
.status-400 { background-color: rgba(254, 231, 92, 0.2); color: #997404; }
.status-401 { background-color: rgba(237, 66, 69, 0.2); color: #d83c3e; }
.status-403 { background-color: rgba(243, 139, 168, 0.2); color: #c2185b; }
.status-404 { background-color: rgba(237, 66, 69, 0.2); color: #d83c3e; }
.status-429 { background-color: rgba(254, 231, 92, 0.2); color: #997404; }
.status-500 { background-color: rgba(248, 113, 113, 0.2); color: #dc2626; }

/* End User Status Types */
.status-active,
.status-1 {
    background-color: rgba(87, 242, 135, 0.2);
    color: #23a55a;
}

.status-active::before,
.status-1::before {
    content: '\f058'; /* fa-check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.status-inactive,
.status-2 {
    background-color: rgba(237, 66, 69, 0.2);
    color: #d83c3e;
}

.status-inactive::before,
.status-2::before {
    content: '\f057'; /* fa-times-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.status-on-leave,
.status-3 {
    background-color: rgba(254, 231, 92, 0.2);
    color: #997404;
}

.status-on-leave::before,
.status-3::before {
    content: '\f017'; /* fa-clock */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

/* Documentation Frame */
.doc-container {
    height: calc(100vh - 140px);
    width: 100%;
}

.doc-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: var(--epr-white);
    border-radius: 8px;
    box-shadow: var(--epr-shadow);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--epr-text-primary) !important;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-primary) !important;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    background-color: var(--epr-white) !important;
    border: 1px solid var(--epr-border) !important;
    border-radius: 4px;
    color: var(--epr-text-primary) !important;
    font-size: 14px;
    font-family: var(--font-primary) !important;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--epr-primary) !important;
    box-shadow: 0 0 0 2px rgba(147, 200, 81, 0.2) !important;
    outline: none !important;
}

.form-input::placeholder {
    color: var(--epr-text-secondary) !important;
}

/* Buttons */
.btn-primary {
    background: var(--epr-primary) !important;
    border: none;
    color: var(--epr-white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary) !important;
}

.btn-primary:hover {
    background: var(--epr-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 200, 81, 0.3);
}

/* Response Preview */
.response-preview {
    margin-top: 30px;
    display: none;
}

/* Try It Section */
.try-it-section {
    background-color: var(--epr-background) !important;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--epr-border) !important;
}

.try-it-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--epr-text-primary) !important;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--epr-primary) !important;
    border: none;
    color: var(--epr-white) !important;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--epr-primary-dark) !important;
    transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-header {
        padding-left: 60px;
    }
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--epr-text-secondary) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--epr-background);
}

::-webkit-scrollbar-thumb {
    background: var(--epr-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--epr-primary);
}

/* Authentication Flow Diagram Styling */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-step {
    background: var(--epr-background);
    border: 2px solid var(--epr-primary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1;
    max-width: 200px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--epr-shadow-hover);
    border-color: var(--epr-primary-dark);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--epr-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin: 0 auto 10px;
    font-family: var(--font-primary);
}

.step-content h4 {
    margin: 10px 0 5px;
    color: var(--epr-text-primary);
    font-weight: 600;
    font-family: var(--font-primary);
}

.step-content p {
    margin: 0;
    color: var(--epr-text-secondary);
    font-size: 14px;
    font-family: var(--font-primary);
}

.flow-arrow {
    font-size: 24px;
    color: var(--epr-primary);
    flex-shrink: 0;
}

/* Logo Alignment Fix for Hero Section */
.hero-content {
    position: relative;
}

.hero-content h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

/* Specific logo fix for "Build with Lifetime EndPoint Resources" */
.hero-content h1 img {
    height: 17.5px !important; /* Half the original size of 35px */
    width: auto;
    vertical-align: middle;
    margin: 0;
}

/* End User Types */
.type-employee,
.type-1 {
    background-color: rgba(147, 200, 81, 0.2);
    color: #5a7a3a;
}

.type-employee::before,
.type-1::before {
    content: '\f2bd'; /* fa-user-tie */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.type-contractor,
.type-2 {
    background-color: rgba(91, 192, 222, 0.2);
    color: #31708f;
}

.type-contractor::before,
.type-2::before {
    content: '\f2c2'; /* fa-id-card */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.type-vendor,
.type-3 {
    background-color: rgba(240, 173, 78, 0.2);
    color: #8a6d3b;
}

.type-vendor::before,
.type-3::before {
    content: '\f0d1'; /* fa-truck */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

/* Asset Status Types */
.asset-status-in-use,
.asset-status-1 {
    background-color: rgba(87, 242, 135, 0.2);
    color: #23a55a;
}

.asset-status-in-use::before,
.asset-status-1::before {
    content: '\f00c'; /* fa-check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.asset-status-available,
.asset-status-2 {
    background-color: rgba(147, 200, 81, 0.2);
    color: #5a7a3a;
}

.asset-status-available::before,
.asset-status-2::before {
    content: '\f067'; /* fa-plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.asset-status-repair,
.asset-status-3 {
    background-color: rgba(240, 173, 78, 0.2);
    color: #8a6d3b;
}

.asset-status-repair::before,
.asset-status-3::before {
    content: '\f0ad'; /* fa-wrench */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.asset-status-retired,
.asset-status-4 {
    background-color: rgba(108, 117, 125, 0.2);
    color: #495057;
}

.asset-status-retired::before,
.asset-status-4::before {
    content: '\f2f5'; /* fa-times */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

/* Service Job Status Types */
.job-status-open,
.job-status-1 {
    background-color: rgba(91, 192, 222, 0.2);
    color: #31708f;
}

.job-status-open::before,
.job-status-1::before {
    content: '\f251'; /* fa-hourglass-start */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.job-status-in-progress,
.job-status-2 {
    background-color: rgba(240, 173, 78, 0.2);
    color: #8a6d3b;
}

.job-status-in-progress::before,
.job-status-2::before {
    content: '\f252'; /* fa-hourglass-half */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.job-status-completed,
.job-status-3 {
    background-color: rgba(87, 242, 135, 0.2);
    color: #23a55a;
}

.job-status-completed::before,
.job-status-3::before {
    content: '\f00c'; /* fa-check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

.job-status-cancelled,
.job-status-4 {
    background-color: rgba(237, 66, 69, 0.2);
    color: #d83c3e;
}

.job-status-cancelled::before,
.job-status-4::before {
    content: '\f00d'; /* fa-times */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 4px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.endpoint-detail {
    animation: fadeIn 0.3s ease-out;
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-btn,
    .tab-nav,
    .copy-btn,
    .btn-primary,
    .btn-docs {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .endpoint-detail {
        page-break-inside: avoid;
    }
} 