:root {
    --primary: #0066FF;
    --secondary: #00C9FF;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* ========================================
   LOGIN PAGE
======================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem;
}

.login-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.login-logo {
    width: 80%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   MOBILE MENU TOGGLE - OCULTO EN DESKTOP
======================================== */
.mobile-menu-toggle {
    display: none; /* Oculto por defecto en desktop */
}

.sidebar-overlay {
    display: none;
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo {
    width: 80%; /* 80% del ancho del sidebar */
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.sidebar-brand {
    display: none; /* Ocultamos el texto, solo logo */
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.sidebar-item.active {
    background: #e7f3ff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-item i {
    font-size: 1.25rem;
    min-width: 24px;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    flex-shrink: 0;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
    overflow-y: auto;
    max-height: 100vh;
    width: 100%;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* ========================================
   STAT CARDS
======================================== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.bg-primary-soft { background: #e7f3ff; }
.bg-success-soft { background: #d4f4dd; }
.bg-warning-soft { background: #fff3cd; }
.bg-danger-soft { background: #f8d7da; }

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

/* ========================================
   CARDS & TABLES
======================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   STATUS BADGES
======================================== */
.badge-pending {
    background: #e9ecef;
    color: #495057;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-sent {
    background: #cfe2ff;
    color: #0d6efd;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-rejected {
    background: #f8d7da;
    color: #dc3545;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-second_review {
    background: #fff3cd;
    color: #fd7e14;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   SERVICE CHECKS
======================================== */
.service-check {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s;
}

.service-check:hover {
    border-color: var(--primary);
    background: #f0f8ff;
}

.service-price {
    color: #6c757d;
    font-size: 0.875rem;
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 992px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (768px y menos)
======================================== */
@media (max-width: 768px) {
    /* MOSTRAR botón hamburguesa SOLO en móvil */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1100;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 10px;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
        cursor: pointer;
    }
    
    .mobile-menu-toggle i {
        font-size: 1.75rem;
    }
    
    /* Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Sidebar móvil */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
        width: 280px;
        max-width: 85vw;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Main content */
    .main-content {
        padding: 1rem;
        padding-top: 5rem;
        max-height: 100vh;
        width: 100%;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .login-box {
        padding: 1.5rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO
======================================== */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 4.5rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

/* ========================================
   SCROLLBAR
======================================== */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}
