/* ════════════════════════════════════════════════
   HR Portal — Global Theme (applied to ALL pages)
   Import this AFTER styles.css on every page
════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f0f2f8;
    color: #111827;
}

/* ── Sidebar ── */
.sidebar {
    background: linear-gradient(180deg, #1a1f36 0%, #111827 100%) !important;
    border-right: none;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px 18px !important;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
}
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff; flex-shrink: 0;
}
.logo h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -.3px;
    margin: 0 !important;
}
.logo small {
    font-size: 11px;
    color: rgba(255,255,255,.38);
    font-weight: 400;
    display: block;
    margin-top: 1px;
}
/* hide legacy bare icon inside logo */
.logo > i { display: none !important; }

/* Nav sections */
.nav-section-title {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.28);
    padding: 16px 18px 4px;
}
.nav-menu { padding: 8px 0 !important; flex: 1; }

.nav-item {
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,.55) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 12px 18px !important;
    gap: 11px !important;
    transition: all .16s !important;
}
.nav-item i { width: 17px; font-size: 14px !important; }
.nav-item:hover {
    background: rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.9) !important;
    border-left-color: rgba(99,102,241,.5) !important;
}
.nav-item.active {
    background: rgba(99,102,241,.18) !important;
    color: #fff !important;
    border-left-color: #6366f1 !important;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: auto;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #fff; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-info p  { font-size: 12.5px; color: #fff; font-weight: 600; margin: 0; }
.sidebar-user-info span { font-size: 10.5px; color: rgba(255,255,255,.38); }

/* ── Main content background ── */
.main-content { background: #f0f2f8 !important; }

/* ── Page header ── */
.header {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 0 24px !important;
    margin-bottom: 4px !important;
    border-bottom: none !important;
}
.header-left h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    letter-spacing: -.4px;
}
.header-left .subtitle { color: #6b7280 !important; font-size: 13px !important; }

/* ── Card / section base ── */
.section, .table-container, .logs-container {
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.07) !important;
}

/* ── Table header row ── */
.employees-table thead { background: #f9fafb !important; }
.employees-table th {
    font-size: 11px !important;
    letter-spacing: .05em !important;
    color: #9ca3af !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 14px 16px !important;
}
.employees-table td { border-bottom: 1px solid #f9fafb !important; }
.employees-table tbody tr:hover { background: #fafafa !important; }

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg,#6366f1,#4f46e5) !important;
    border: none !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(99,102,241,.25) !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg,#4f46e5,#4338ca) !important;
    box-shadow: 0 4px 14px rgba(99,102,241,.35) !important;
    transform: translateY(-1px) !important;
}
.btn-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}
.btn-secondary:hover { background: #e5e7eb !important; }

/* ── Floating AI button ── */
.floating-chat-btn {
    background: linear-gradient(135deg,#6366f1,#8b5cf6) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(99,102,241,.45) !important;
}
.floating-chat-btn:hover {
    transform: translateY(-3px) scale(1.06) !important;
    box-shadow: 0 12px 32px rgba(99,102,241,.55) !important;
}

/* ── Search / filter inputs ── */
.search-box input:focus,
.filter-group select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12) !important;
}

/* ── Stat cards (dashboard & logs) ── */
.stat-card, .log-stat {
    border-radius: 12px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.06) !important;
    transition: transform .2s, box-shadow .2s !important;
}
.stat-card:hover, .log-stat:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}

/* ── Modal ── */
.modal-content {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.18) !important;
}
.modal-header {
    border-radius: 16px 16px 0 0 !important;
    padding: 20px 24px !important;
}

/* ── Status badges polish ── */
.status-badge { border-radius: 20px !important; font-size: 11.5px !important; font-weight: 600 !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
