/* ============================================================================
   SALLY ADMIN - CSS PROFESIONAL
   ============================================================================ */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar {
    width: 260px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 4px 0 20px var(--shadow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    padding: 0 25px 20px;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.sidebar nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 14px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
}

.sidebar nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    max-width: 1400px;
}

.main-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* ============================================================================
   FILTERS / TABS
   ============================================================================ */

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters .btn {
    padding: 10px 20px;
    background: white;
    color: var(--text-gray);
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filters .btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filters .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================================================
   TABLE
   ============================================================================ */

table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
}

thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: var(--bg-light);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 16px 20px;
    font-size: 14px;
}

tbody td small {
    color: var(--text-gray);
    font-size: 13px;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-CONFIRMADO {
    background: #d1fae5;
    color: #065f46;
}

.badge-PENDIENTE_SENIA,
.badge-PENDIENTE {
    background: #fef3c7;
    color: #92400e;
}

.badge-APROBADO {
    background: #dbeafe;
    color: #1e40af;
}

.badge-RECHAZADO,
.badge-CANCELADO {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

button, .btn-sm {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    table {
        font-size: 12px;
    }
    
    thead th,
    tbody td {
        padding: 10px 12px;
    }
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state svg {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 14px;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

table tbody tr {
    animation: fadeIn 0.3s ease;
}