/* ── Fuentes Ananda ── */
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/Bricolage/BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf') format('truetype');
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* ── Variables Ananda ── */
:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e1432;
    --sidebar-text: #b8a9d4;
    --sidebar-active-bg: rgba(197,232,108,0.13);
    --sidebar-active-border: #C5E86C;
    --topbar-height: 60px;
    --primary: #C98BDB;
    --primary-dark: #a96bbf;
    --primary-light: rgba(201,139,219,0.12);
    --accent: #C5E86C;
    --accent-dark: #a8cc4e;
    --accent-light: rgba(197,232,108,0.13);
    --bg: #f0f4ec;
    --surface: #fff;
    --border: #dce5d2;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Poppins', system-ui, sans-serif;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(30,20,50,0.10);
    --transition: 0.2s ease;

    /* Nombres oficiales Ananda (alias de los colores de marca) */
    --ananda-lila:        #C98BDB;
    --ananda-verde:       #C5E86C;
    --ananda-negro:       #000000;
    --ananda-blanco:      #FFFFFF;

    /* Colores de apoyo oficiales (2026-06-03) */
    --ananda-azul-soft:   #EAF2FB;
    --ananda-azul:        #AECBEC;
    --ananda-azul-strong: #4F7FBF;
    --ananda-azul-text:   #2B4A73;
    --ananda-gris-soft:   #F4F5F7;
    --ananda-gris:        #E6E9EE;
    --ananda-gris-strong: #C4CAD3;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.sidebar-logo,
.page-header h1,
.stat-value,
.topbar-title {
    font-family: var(--font-heading);
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0; top: 0;
    z-index: 300;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

/* Franja bicolor Ananda en la parte superior del sidebar */
#sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C98BDB 0%, #C5E86C 100%);
    z-index: 1;
    pointer-events: none;
}

#sidebar.hidden { transform: translateX(-100%); }

.sidebar-header {
    padding: 1.5rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(201,139,219,0.12);
}

.sidebar-logo {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary) 0%, #a96bbf 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(201,139,219,0.4);
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sidebar-logo-sub {
    font-size: 0.63rem;
    font-weight: 400;
    color: var(--sidebar-text);
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    opacity: 0.7;
}

/* Avatar del usuario en sidebar */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-dept {
    color: var(--sidebar-text);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

.badge-rol {
    font-size: 0.64rem;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    display: inline-block;
    margin-top: 0.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-empleado     { background: rgba(201,139,219,0.25); color: #e4b8f5; }
.badge-jefe         { background: rgba(197,232,108,0.2);  color: #c5e86c; }
.badge-coordinador  { background: rgba(56,189,248,0.2);   color: #7dd3fc; }
.badge-gerente      { background: rgba(251,146,60,0.2);   color: #fdba74; }
.badge-rh           { background: rgba(201,139,219,0.4);  color: #fff; }
.badge-seguridad    { background: rgba(239,68,68,0.25);   color: #fca5a5; }
.badge-admin        { background: rgba(251,191,36,0.25);  color: #fbbf24; }

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

.sidebar-section {
    padding: 0.65rem 1.25rem 0.2rem;
    color: rgba(197,232,108,0.55);
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-body);
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.25rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.865rem;
    border-left: 3px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
    border-radius: 0 8px 8px 0;
    margin-right: 0.75rem;
}

.sidebar-nav .nav-item:hover {
    color: #C5E86C;
    background: rgba(197,232,108,0.08);
    border-left-color: rgba(197,232,108,0.4);
    transform: translateX(2px);
}

.sidebar-nav .nav-item.active {
    color: #C5E86C;
    background: rgba(197,232,108,0.15);
    border-left-color: #C5E86C;
    border-left-width: 4px;
    font-weight: 700;
}

.sidebar-nav .nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(201,139,219,0.10);
    margin: 0.5rem 1.25rem;
}

.nav-item-logout { color: #f87171 !important; }
.nav-item-logout:hover {
    background: rgba(239,68,68,0.10) !important;
    border-left-color: #f87171 !important;
    color: #fca5a5 !important;
}

/* Conoce Ananda — ítem destacado */
.nav-item-conoce {
    color: #C98BDB !important;
    background: rgba(201,139,219,0.10);
    border-left-color: rgba(201,139,219,0.5) !important;
    border-radius: 0 10px 10px 0;
    font-weight: 600;
}
.nav-item-conoce i {
    color: #C98BDB;
}
.nav-item-conoce:hover {
    color: #d9a8e8 !important;
    background: rgba(201,139,219,0.18) !important;
    border-left-color: #C98BDB !important;
    transform: translateX(2px);
}
.nav-item-conoce.active {
    color: #C98BDB !important;
    background: rgba(201,139,219,0.20) !important;
    border-left-color: #C98BDB !important;
    border-left-width: 4px;
}

/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
#page-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.28s cubic-bezier(.4,0,.2,1);
}

#page-content.full { margin-left: 0; }

.topbar {
    height: var(--topbar-height);
    background: linear-gradient(180deg, #fff 0%, #f9fcf4 100%);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 4px rgba(30,20,50,0.05);
}

/* Línea bicolor Ananda en la parte inferior del topbar */
.topbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C98BDB 0%, #C5E86C 100%);
    pointer-events: none;
}

.topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.topbar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

#sidebarToggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 0.4rem;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

#sidebarToggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Campana de notificaciones */
.topbar-bell {
    position: relative;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 0.4rem;
    line-height: 1;
    transition: all var(--transition);
}
.topbar-bell:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.topbar-bell .notif-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--surface);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Avatar topbar */
.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   OVERLAY MOBILE (sidebar)
══════════════════════════════════════ */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 299;
    opacity: 0;
    transition: opacity 0.25s ease;
}
#sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.main-content {
    padding: 1.5rem;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-header { margin-bottom: 1.5rem; }
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--accent);
}
.page-header p { color: var(--text-muted); font-size: 0.875rem; padding-left: 0.75rem; }

/* ══════════════════════════════════════
   STAT CARDS
══════════════════════════════════════ */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(197,232,108,0.15);
    transform: translateY(-2px);
    border-color: rgba(197,232,108,0.5);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.stat-card:hover .stat-icon { transform: scale(1.08); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    border-top: 3px solid var(--accent) !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-heading);
    border-radius: var(--radius) var(--radius) 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.border-dashed { border: 2px dashed #b8d8a0 !important; }

/* Quick Action Cards */
.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.action-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    text-decoration: none;
}

.action-card-blue  { --ac: #3b82f6; --ac-bg: #eff6ff; }
.action-card-amber { --ac: #f59e0b; --ac-bg: #fffbeb; }
.action-card-green { --ac: #10b981; --ac-bg: #f0fdf4; }
.action-card-purple { --ac: #8b5cf6; --ac-bg: #f5f3ff; }

.action-card:hover { border-color: var(--ac, var(--primary)); }
.action-card:hover .action-icon { background: var(--ac-bg, var(--primary-light)); color: var(--ac, var(--primary)); }

.action-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.action-title { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.action-sub   { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ══════════════════════════════════════
   TABLES
══════════════════════════════════════ */
.table-portal { font-size: 0.875rem; }

.table-portal thead th {
    background: #eef4e5;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-top: none;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    white-space: nowrap;
}

.table-portal tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: #dde8d0;
}

.table-portal tbody tr {
    transition: background var(--transition);
}

.table-portal tbody tr:hover { background: #f2f8ea; }

/* ══════════════════════════════════════
   ESTADO BADGES
══════════════════════════════════════ */
.estado-badge {
    padding: 0.3em 0.8em;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.estado-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: currentColor; }

.estado-pendiente  { background: #fef3c7; color: #92400e; }
.estado-aprobado   { background: #dcfce7; color: #166534; }
.estado-rechazado  { background: #fee2e2; color: #991b1b; }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    max-width: 640px;
    border: 1px solid var(--border);
}

.form-label { font-weight: 500; color: #374151; font-size: 0.875rem; }

.form-control, .form-select {
    border-color: #cddbc0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,139,219,0.18);
    outline: none;
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(201,139,219,0.35);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #1e293b;
    font-weight: 700;
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(197,232,108,0.4);
}

/* Botón oficial de marca Ananda (maestro 05-identidad-grafica) */
.btn-ananda {
    background: var(--ananda-lila);
    color: var(--ananda-negro);
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: .6rem 1.2rem;
    cursor: pointer;
    transition: filter var(--transition);
}
.btn-ananda:hover, .btn-ananda:focus {
    filter: brightness(0.93);
    color: var(--ananda-negro);
}

/* ══════════════════════════════════════
   LOGIN – SPLIT
══════════════════════════════════════ */
.login-split {
    min-height: 100vh;
    display: flex;
}

.login-brand {
    width: 42%;
    background: linear-gradient(150deg, #1a1030 0%, #1e1432 35%, #2d1b4e 70%, #3a2060 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 2rem;
}

/* Decoraciones animadas */
.login-brand-deco { position: absolute; border-radius: 50%; animation: float 8s ease-in-out infinite; }
.ld-1 {
    width: 400px; height: 400px;
    top: -130px; right: -130px;
    background: radial-gradient(circle, rgba(201,139,219,0.12), transparent 70%);
    border: 1px solid rgba(201,139,219,0.1);
    animation-delay: 0s;
}
.ld-2 {
    width: 280px; height: 280px;
    bottom: -70px; left: -70px;
    background: radial-gradient(circle, rgba(197,232,108,0.20), transparent 70%);
    animation-delay: -3s;
}
.ld-3 {
    width: 130px; height: 130px;
    top: 45%; right: -15px;
    background: radial-gradient(circle, rgba(201,139,219,0.08), transparent 70%);
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

.login-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 320px;
}

.login-brand-icon {
    width: 76px; height: 76px;
    background: rgba(201,139,219,0.15);
    border: 2px solid rgba(201,139,219,0.3);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 1.75rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(201,139,219,0.2);
}

.login-brand-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.login-brand-sub {
    color: rgba(184,169,212,0.7);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(197,232,108,0.20);
    border: 1.5px solid rgba(197,232,108,0.55);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    color: #C5E86C;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Feature pills en la pantalla de login */
.login-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: left;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(184,169,212,0.8);
    font-size: 0.82rem;
}

.login-feature-icon {
    width: 26px; height: 26px;
    background: rgba(201,139,219,0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Panel derecho */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2.5rem 2rem;
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(30,20,50,0.10);
    border: 1px solid var(--border);
}

.login-form-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.login-form-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-admin-link {
    font-size: .82rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.login-admin-link:hover { color: var(--primary-dark); }

/* Login simple (admin_login.html) */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1432 0%, #2d1b4e 60%, #1e1432 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: var(--surface);
    border-radius: 1.25rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(201,139,219,0.1);
    border-top: 3px solid var(--accent) !important;
}

.login-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.login-logo-sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   PANEL RH BANNER
══════════════════════════════════════ */
.rh-banner {
    background: linear-gradient(135deg, #1a1030 0%, #1e1432 35%, #2d1b4e 65%, #1e3a10 100%);
    border-radius: 1.1rem;
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201,139,219,0.1);
    border-bottom: 3px solid var(--accent) !important;
}

.rh-banner-deco { position: absolute; border-radius: 50%; }
.rh-deco-1 { width: 280px; height: 280px; top: -100px; right: -80px; background: radial-gradient(circle, rgba(201,139,219,0.12), transparent 70%); }
.rh-deco-2 { width: 200px; height: 200px; bottom: -60px; left: 30%; background: radial-gradient(circle, rgba(197,232,108,0.24), transparent 70%); }
.rh-deco-3 { width: 90px; height: 90px; top: 10px; right: 200px; background: radial-gradient(circle, rgba(201,139,219,0.08), transparent 70%); }

.rh-banner-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(201,139,219,0.65);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.rh-banner-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.rh-banner-sub {
    color: rgba(184,169,212,0.7);
    font-size: 0.875rem;
}

.rh-banner-icon {
    width: 72px; height: 72px;
    background: rgba(201,139,219,0.12);
    border: 1.5px solid rgba(201,139,219,0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════
   APPROVAL CARDS
══════════════════════════════════════ */
.approval-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition);
    position: relative;
}

.approval-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.approval-card:hover {
    border-color: rgba(197,232,108,0.45);
    box-shadow: 0 4px 16px rgba(197,232,108,0.12);
    transform: translateY(-1px);
}

.approval-card:hover::before { opacity: 1; }

/* ══════════════════════════════════════
   WELCOME BANNER (dashboard)
══════════════════════════════════════ */
.welcome-banner {
    background: linear-gradient(135deg, #1a1030 0%, #1e1432 35%, #2d1b4e 65%, #1e3a10 100%);
    border-radius: 1.1rem;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201,139,219,0.1);
    border-bottom: 3px solid var(--accent) !important;
}

.welcome-banner-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.wb-deco-1 { width: 300px; height: 300px; top: -120px; right: -100px; background: radial-gradient(circle, rgba(201,139,219,0.12), transparent 70%); }
.wb-deco-2 { width: 220px; height: 220px; bottom: -70px; left: 20%; background: radial-gradient(circle, rgba(197,232,108,0.22), transparent 70%); }

.welcome-banner-content { position: relative; z-index: 1; }
.welcome-greeting {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(201,139,219,0.7);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.welcome-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}
.welcome-sub { color: rgba(184,169,212,0.7); font-size: 0.875rem; }

.welcome-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(197,232,108,0.22);
    border: 1.5px solid rgba(197,232,108,0.5);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    color: #C5E86C;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

/* ══════════════════════════════════════
   VACATION PROGRESS BAR
══════════════════════════════════════ */
.vac-progress-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.vac-progress-bar-wrap {
    height: 8px;
    background: #dff0c8;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.6rem 0;
}

.vac-progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════
   ALERTS
══════════════════════════════════════ */
.alert {
    border-radius: var(--radius);
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success { background: #f0fdf4; color: #166534; border-left: 4px solid #16a34a; }
.alert-danger  { background: #fff1f2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 64px; height: 64px;
    background: var(--primary-light);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.empty-state p { font-size: 0.875rem; margin: 0; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        z-index: 301;
    }
    #sidebar.show { transform: translateX(0); }
    #page-content { margin-left: 0 !important; }

    .login-split { flex-direction: column; }
    .login-brand { width: 100%; min-height: 220px; padding: 2.5rem 1.5rem; }
    .login-brand-title { font-size: 1.75rem; }
    .login-brand-sub { font-size: 0.83rem; }
    .login-features { display: none; }
    .login-form-inner { box-shadow: none; border-radius: 0; padding: 2rem 1.25rem; }
    .login-form-panel { padding: 1.5rem 1rem; background: #fff; }
    .rh-banner-title { font-size: 1.5rem; }
    .welcome-name { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    .main-content { padding: 1rem; }
    .stat-value { font-size: 1.5rem; }
}
