/* ══════════════════════════════════════════════════════════════
   BURIDA GRH — Design System v5.0
   Palette Institutionnelle : Émeraude · Or BURIDA
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Émeraude BURIDA (alias --indigo pour réutiliser tous les composants) */
  --indigo:       #059669;
  --indigo-light: #34D399;
  --indigo-dark:  #047857;
  --indigo-pale:  #D1FAE5;

  /* Vert émeraude complet */
  --green:        #059669;
  --green-mid:    #047857;
  --green-soft:   #10B981;
  --green-light:  #34D399;
  --green-pale:   #D1FAE5;
  --green-deep:   #064E3B;

  /* Or BURIDA */
  --gold:         #D97706;
  --gold-light:   #F59E0B;
  --gold-dark:    #B45309;
  --gold-pale:    #FEF3C7;

  /* Sidebar forêt profonde */
  --dark:         #022C22;
  --dark-mid:     #052E16;
  --dark-soft:    #064E3B;

  /* Texte */
  --text-main:    #111827;
  --text-muted:   #4B5563;
  --text-light:   #9CA3AF;

  /* Fond vert très pâle */
  --bg:           #F0FDF9;
  --bg-card:      #FFFFFF;
  --bg-row:       #F7FDFB;

  /* Sémantique */
  --success:      #059669;
  --danger:       #DC2626;
  --warning:      #D97706;
  --info:         #0284C7;

  /* Rétro-compatibilité */
  --navy:         #059669;
  --navy-soft:    #047857;

  /* Dimensions */
  --sidebar-w:    264px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --shadow-card:  0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(5,150,105,.07);
  --shadow-hover: 0 6px 20px rgba(0,0,0,.07), 0 16px 40px rgba(5,150,105,.12);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── FLASH ──────────────────────────────────────────────── */
.flash-msg {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: var(--radius-md); color: #fff;
  font-size: .86rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  animation: flashIn .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 420px; backdrop-filter: blur(4px);
}
.flash-msg button { background:none; border:none; color:rgba(255,255,255,.75); cursor:pointer; font-size:1rem; margin-left:12px; line-height:1; }
@keyframes flashIn {
  from { transform: translateX(60px) scale(.95); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — Forêt profonde
   ═══════════════════════════════════════════════════════════ */
#sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-mid) 55%, var(--dark-soft) 100%);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 32px rgba(0,0,0,.35);
  border-right: 1px solid rgba(52,211,153,.08);
}

.sidebar-brand {
  padding: 26px 20px 22px;
  border-bottom: 1px solid rgba(52,211,153,.1);
  position: relative;
}
.sidebar-brand::after {
  content: '';
  position: absolute; bottom: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(52,211,153,.2), transparent);
}
.brand-logo-wrap { display: flex; align-items: center; gap: 13px; }
.brand-emblem {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(5,150,105,.45), inset 0 1px 0 rgba(255,255,255,.2);
  font-size: 1.3rem; color: #fff;
}
.brand-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--green-light);
  letter-spacing: .07em; font-weight: 700; line-height: 1.1;
}
.brand-text p { font-size: .67rem; color: rgba(255,255,255,.3); letter-spacing: .04em; margin-top: 3px; text-transform: uppercase; }
.brand-version {
  display: inline-block; margin-top: 10px; font-size: .62rem;
  color: rgba(52,211,153,.5); background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.12); padding: 2px 8px; border-radius: 20px; letter-spacing: .08em;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 0 8px; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(52,211,153,.15); border-radius: 99px; }

.nav-section-label {
  font-size: .59rem; font-weight: 700; letter-spacing: .16em;
  color: rgba(255,255,255,.2); text-transform: uppercase; padding: 18px 20px 5px;
}
.nav-item-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 20px; margin: 1px 9px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.48); text-decoration: none;
  font-size: .83rem; font-weight: 400;
  transition: all .17s ease; cursor: pointer; position: relative;
}
.nav-item-link i { font-size: .98rem; width: 18px; flex-shrink: 0; }
.nav-item-link:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.nav-item-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(5,150,105,.28) 0%, rgba(5,150,105,.12) 100%);
  box-shadow: inset 2px 0 0 var(--green-light);
}
.nav-item-link.active i { color: var(--green-light); }
.nav-item-link .badge-count {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff; font-size: .6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; letter-spacing: .04em;
}

.sidebar-footer {
  padding: 14px 14px 20px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-footer .avatar {
  width: 35px; height: 35px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  display: grid; place-items: center;
  font-weight: 700; font-size: .78rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(5,150,105,.35);
}
.sidebar-footer .user-info { flex: 1; overflow: hidden; }
.sidebar-footer .user-name { font-size: .79rem; color: rgba(255,255,255,.9); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .user-role { font-size: .66rem; color: rgba(255,255,255,.3); margin-top: 1px; }
.sidebar-footer a { color: rgba(255,255,255,.2); font-size: .9rem; text-decoration: none; transition: color .2s; }
.sidebar-footer a:hover { color: var(--green-light); }

/* ═══════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
#main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  background: #fff; padding: 0 30px; height: 62px;
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 #DCF5EC, 0 2px 12px rgba(5,150,105,.06);
  border-bottom: 3px solid var(--green);
}
.topbar .page-title { font-family: 'Playfair Display', serif; font-size: 1.18rem; color: var(--green-deep); font-weight: 700; }
.topbar .breadcrumb { font-size: .72rem; color: var(--text-muted); margin-bottom: 1px; display: flex; align-items: center; gap: 4px; }
.topbar .search-bar {
  margin-left: auto; background: var(--bg-row); border: 1.5px solid #B2DFCF;
  border-radius: 10px; padding: 7px 14px 7px 38px; font-size: .84rem;
  width: 230px; outline: none; color: var(--text-main); transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='%234B5563' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.topbar .search-bar:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.topbar .icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-row); border: 1.5px solid #B2DFCF;
  display: grid; place-items: center; color: var(--text-muted);
  font-size: .95rem; cursor: pointer; position: relative;
  transition: all .18s; text-decoration: none;
}
.topbar .icon-btn:hover { background: var(--green-pale); border-color: var(--green-light); color: var(--green); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid #fff; }

.content { padding: 28px 30px; flex: 1; }

/* ═══════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════ */
.stat-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 20px 22px; border: 1px solid #C6EDD9;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow-card); transition: transform .22s, box-shadow .22s;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--green), var(--gold));
  opacity: 0; transition: opacity .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card:hover::after { opacity: 1; }

.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.green   { background: rgba(5,150,105,.12);  color: var(--green); }
.stat-icon.gold    { background: rgba(217,119,6,.12);  color: var(--gold); }
.stat-icon.blue    { background: rgba(2,132,199,.1);   color: var(--info); }
.stat-icon.red     { background: rgba(220,38,38,.09);  color: var(--danger); }
.stat-icon.orange  { background: rgba(224,123,57,.1);  color: var(--warning); }
.stat-icon.purple  { background: rgba(124,58,237,.1);  color: #7C3AED; }

.stat-info { flex: 1; }
.stat-label { font-size: .71rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--text-main); line-height: 1.1; margin: 4px 0 5px; }
.stat-trend { font-size: .73rem; display: flex; align-items: center; gap: 3px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ─── CHART CARD ─────────────────────────────────────────── */
.chart-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid #C6EDD9; box-shadow: var(--shadow-card);
  overflow: hidden; height: 100%;
}
.chart-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid #E6F5EE;
  background: linear-gradient(to right, #F5FBF8, #fff);
}
.chart-card-title {
  font-family: 'Playfair Display', serif;
  font-size: .96rem; font-weight: 700; color: var(--green-deep);
  display: flex; align-items: center; gap: 8px;
}
.chart-card-title i { color: var(--gold); font-size: .9rem; }
.chart-card-body { padding: 18px 20px; }

/* Section cards */
.section-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid #C6EDD9; box-shadow: var(--shadow-card); overflow: hidden; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 14px; border-bottom: 1px solid #E6F5EE; background: linear-gradient(to right, #F5FBF8, var(--bg-card)); }
.section-title { font-family: 'Playfair Display', serif; font-size: .98rem; font-weight: 700; color: var(--green-deep); display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--gold); font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════
   TABLEAU
   ═══════════════════════════════════════════════════════════ */
.rh-table { width: 100%; border-collapse: collapse; }
.rh-table thead th { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--green-deep); padding: 10px 16px; background: linear-gradient(to bottom, #F2FAF6, #E8F6EF); border-bottom: 2px solid #B2DFCF; white-space: nowrap; }
.rh-table tbody tr { border-bottom: 1px solid #EAF6EF; transition: background .12s; }
.rh-table tbody tr:hover { background: var(--bg-row); }
.rh-table tbody td { padding: 12px 16px; font-size: .84rem; vertical-align: middle; }
.emp-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; flex-shrink: 0; }
.emp-name { font-weight: 600; font-size: .87rem; color: var(--text-main); }
.emp-id { font-size: .7rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge-status.actif    { background: #D1FAE5; color: #065F46; }
.badge-status.actif::before    { background: #059669; }
.badge-status.conge    { background: #FEF3C7; color: #92400E; }
.badge-status.conge::before    { background: var(--warning); }
.badge-status.suspendu { background: #FEE2E2; color: #991B1B; }
.badge-status.suspendu::before { background: var(--danger); }
.badge-role { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-role.super_admin { background: rgba(217,119,6,.12); color: var(--gold-dark); }
.badge-role.admin       { background: rgba(5,150,105,.1);  color: var(--green-mid); }
.badge-role.utilisateur { background: #F3F4F6; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════ */
.timeline { padding: 18px 22px; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.timeline-item:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 1px; background: linear-gradient(to bottom, #B2DFCF, transparent); }
.tl-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; flex-shrink: 0; z-index: 1; border: 2px solid #fff; box-shadow: 0 0 0 2px #C6EDD9; }
.tl-icon.recrutement { background: rgba(5,150,105,.12);  color: var(--green); }
.tl-icon.promotion   { background: rgba(217,119,6,.15);  color: var(--gold-dark); }
.tl-icon.formation   { background: rgba(2,132,199,.1);   color: var(--info); }
.tl-icon.sanction    { background: rgba(220,38,38,.1);   color: var(--danger); }
.tl-icon.conge       { background: rgba(217,119,6,.12);  color: var(--warning); }
.tl-icon.mutation    { background: rgba(13,148,136,.12); color: #0D9488; }
.tl-body { flex: 1; }
.tl-title { font-weight: 600; font-size: .86rem; color: var(--text-main); }
.tl-desc  { font-size: .77rem; color: var(--text-muted); margin-top: 3px; line-height: 1.55; }
.tl-date  { font-size: .7rem; color: var(--text-light); margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════════════════ */
.btn-gold { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); color: #fff; border: none; border-radius: 10px; padding: 9px 18px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: opacity .18s, transform .15s, box-shadow .18s; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; box-shadow: 0 2px 8px rgba(217,119,6,.3); }
.btn-gold:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(217,119,6,.4); color: #fff; }
.btn-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%); color: #fff; border: none; border-radius: 10px; padding: 9px 18px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: opacity .18s, transform .15s; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; box-shadow: 0 2px 8px rgba(5,150,105,.3); }
.btn-green:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.btn-outline-navy { background: transparent; border: 1.5px solid #B2DFCF; color: var(--text-muted); border-radius: 10px; padding: 8px 14px; font-size: .81rem; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-outline-navy:hover { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.btn-danger { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; border: none; border-radius: 10px; padding: 8px 14px; font-size: .81rem; cursor: pointer; transition: opacity .18s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-danger:hover { opacity: .85; color: #fff; }
.btn-success { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: #fff; border: none; border-radius: 10px; padding: 8px 14px; font-size: .81rem; cursor: pointer; transition: opacity .18s; display: inline-flex; align-items: center; gap: 6px; }
.btn-success:hover { opacity: .88; }

/* ═══════════════════════════════════════════════════════════
   ONGLETS / FORMULAIRES / MODALS
   ═══════════════════════════════════════════════════════════ */
.detail-tabs { border-bottom: 1px solid #C6EDD9; padding: 0 22px; }
.detail-tabs .nav-link { font-size: .81rem; font-weight: 500; color: var(--text-muted); border: none; border-bottom: 2px solid transparent; padding: 10px 16px; border-radius: 0; background: transparent; cursor: pointer; transition: all .18s; text-decoration: none; display: inline-block; }
.detail-tabs .nav-link.active, .detail-tabs .nav-link:hover { color: var(--green); border-bottom-color: var(--gold); }

.form-label-custom { font-size: .74rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; display: block; }
.form-control-custom { border: 1.5px solid #B2DFCF; border-radius: 10px; padding: 9px 13px; font-size: .86rem; width: 100%; outline: none; transition: border-color .18s, box-shadow .18s; font-family: 'DM Sans', sans-serif; background: #fff; color: var(--text-main); }
.form-control-custom:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.form-control-custom[readonly] { background: var(--bg-row); }
select.form-control-custom { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 16 16'%3E%3Cpath fill='%234B5563' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(2,44,34,.55); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .22s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: #fff; border-radius: var(--radius-lg); width: 580px; max-width: 96vw; max-height: 92vh; overflow-y: auto; transform: translateY(18px) scale(.98); transition: transform .22s cubic-bezier(.34,1.2,.64,1); box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(5,150,105,.1); }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-box.wide { width: 760px; }
.modal-head { padding: 20px 24px 16px; border-bottom: 1px solid #E6F5EE; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(to right, #F5FBF8, #fff); }
.modal-head h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--green-deep); font-weight: 700; }
.modal-close { background: var(--bg-row); border: 1px solid #B2DFCF; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: .95rem; color: var(--text-muted); display: grid; place-items: center; transition: all .15s; }
.modal-close:hover { background: var(--green-pale); color: var(--green); }
.modal-body { padding: 20px 24px 8px; }
.modal-footer-btns { padding: 14px 24px 20px; display: flex; gap: 9px; justify-content: flex-end; border-top: 1px solid #E6F5EE; background: linear-gradient(to right, #F5FBF8, #fff); }

/* ─── KPI MINI ───────────────────────────────────────────── */
.kpi-mini { display: flex; flex-direction: column; align-items: center; padding: 13px 10px; border-radius: var(--radius-md); background: var(--bg-row); flex: 1; border: 1px solid #C6EDD9; }
.kpi-mini .kv { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--green-deep); }
.kpi-mini .kl { font-size: .68rem; color: var(--text-muted); text-align: center; margin-top: 3px; }

/* ─── CHART BARS (legacy) ────────────────────────────────── */
.chart-bar-container { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding: 0 4px; }
.chart-bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 100%); transition: opacity .2s; cursor: default; }
.chart-bar:hover { opacity: .75; }
.chart-bar.accent { background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%); }
.chart-labels { display: flex; gap: 5px; padding: 6px 4px 0; }
.chart-labels span { flex: 1; text-align: center; font-size: .62rem; color: var(--text-muted); }

/* ─── PROFIL / CONNEXION ─────────────────────────────────── */
.profile-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 60%, var(--dark-soft) 100%); padding: 26px 22px 20px; display: flex; gap: 16px; align-items: flex-start; position: relative; overflow: hidden; }
.profile-header::before { content: 'BURIDA'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 700; color: rgba(52,211,153,.06); letter-spacing: .2em; pointer-events: none; }
.profile-avatar-lg { width: 66px; height: 66px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; color: #fff; flex-shrink: 0; border: 2px solid rgba(52,211,153,.3); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.profile-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: #fff; font-weight: 700; }
.profile-post { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.profile-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.profile-tag { background: rgba(52,211,153,.15); color: var(--green-light); font-size: .66rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; letter-spacing: .05em; border: 1px solid rgba(52,211,153,.2); }

.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, var(--dark-soft) 100%); display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.login-page::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(5,150,105,.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(217,119,6,.06) 0%, transparent 50%); pointer-events: none; }
.login-page::after { content: 'BURIDA'; position: absolute; bottom: -20px; right: -20px; font-family: 'Playfair Display', serif; font-size: 14rem; font-weight: 700; color: rgba(52,211,153,.04); letter-spacing: .1em; pointer-events: none; line-height: 1; }
.login-card { background: rgba(255,255,255,.97); border-radius: 20px; width: 440px; max-width: 100%; padding: 0; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.4), 0 0 0 1px rgba(5,150,105,.15); position: relative; z-index: 1; }
.login-card-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%); padding: 36px 40px 28px; text-align: center; position: relative; }
.login-card-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, transparent, var(--green-light), transparent); }
.login-emblem { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--green), var(--green-mid)); display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.8rem; color: #fff; box-shadow: 0 8px 32px rgba(5,150,105,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.login-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--green-light); font-weight: 700; letter-spacing: .06em; }
.login-subtitle { font-size: .74rem; color: rgba(255,255,255,.4); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.login-card-body { padding: 32px 40px 36px; }
.login-error { background: #FEE2E2; border: 1px solid #FECACA; color: #991B1B; border-radius: 10px; padding: 11px 14px; font-size: .83rem; margin-bottom: 18px; display: flex; gap: 9px; align-items: center; border-left: 3px solid var(--danger); }

/* ─── MISC ───────────────────────────────────────────────── */
.tag-service { font-size: .76rem; background: var(--green-pale); color: var(--green-mid); padding: 3px 9px; border-radius: 6px; font-weight: 600; border: 1px solid #B2DFCF; }
.info-row { display: flex; gap: 8px; align-items: flex-start; font-size: .81rem; color: var(--text-muted); line-height: 2; }
.info-row i { color: var(--gold); width: 15px; margin-top: 3px; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-muted); }
.empty-state i { font-size: 2.4rem; color: var(--green-light); opacity: .5; display: block; margin-bottom: 12px; }
.empty-state p { font-size: .88rem; }
.pagination-wrap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.year-divider { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.year-divider .line { height: 1px; flex: 1; }
.year-divider .year-label { font-size: .88rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #A7D7C0; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-light); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  #main { margin-left: 0; }
  .content { padding: 18px 16px; }
  .topbar { padding: 0 16px; }
  .topbar .search-bar { display: none; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .38s ease both; }
.fade-up:nth-child(2) { animation-delay: .07s; }
.fade-up:nth-child(3) { animation-delay: .14s; }
.fade-up:nth-child(4) { animation-delay: .21s; }
