/* assets/css/style.css - UFHB Soutenance Pro */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* ===== CSS VARIABLES - UFHB Theme ===== */
:root {
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;

  --sky-400:  #38BDF8;
  --sky-500:  #0EA5E9;
  --sky-600:  #0284C7;
  --sky-700:  #0369A1;

  --green-400: #4ADE80;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --green-700: #15803D;

  --primary:   #0EA5E9;
  --primary-d: #0369A1;
  --secondary: #16A34A;
  --accent:    #38BDF8;

  --dark:   #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;
  --gray:   #64748B;
  --light:  #F8FAFC;
  --white:  #FFFFFF;
  --border: #E2E8F0;

  --success: #22C55E;
  --warning: #F59E0B;
  --danger:  #EF4444;
  --info:    #0EA5E9;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.16);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --sidebar-w: 260px;
  --header-h:  64px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--light);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--blue-50); }
::-webkit-scrollbar-thumb { background: var(--sky-400); border-radius: 99px; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--sky-700) 40%, var(--green-700) 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  z-index: 1;
}
.login-brand {
  text-align: center;
  color: white;
  animation: fadeInUp .8s ease both;
}
.login-brand .logo-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; margin: 0 auto 20px;
}
.login-brand h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.login-brand p { opacity: .75; font-size: .9rem; }
.login-features { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.login-feature {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); font-size: .88rem;
}
.login-feature-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.login-right {
  width: 460px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  box-shadow: -20px 0 60px rgba(0,0,0,.2);
  position: relative; z-index: 1;
  animation: slideInRight .6s ease both;
}
.login-form-wrap { width: 100%; }
.login-form-wrap h2 {
  font-size: 1.6rem; font-weight: 700;
  color: var(--dark); margin-bottom: 6px;
}
.login-form-wrap .subtitle { color: var(--gray); margin-bottom: 32px; font-size: .9rem; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-weight: 600; font-size: .82rem;
  color: var(--dark-3); text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font);
  font-size: .9rem; color: var(--dark);
  background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.form-control.error { border-color: var(--danger); }
.input-group { position: relative; }
.input-group .form-control { padding-left: 42px; }
.input-group .input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gray); font-size: 15px; pointer-events: none;
}
.input-group .toggle-pw {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gray); cursor: pointer; font-size: 15px;
  transition: color .2s;
}
.input-group .toggle-pw:hover { color: var(--sky-500); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font); font-weight: 600; font-size: .88rem;
  border: none; cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  color: white;
  box-shadow: 0 4px 14px rgba(14,165,233,.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,165,233,.45);
}
.btn-success {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  box-shadow: 0 4px 14px rgba(22,197,94,.3);
}
.btn-success:hover { transform: translateY(-1px); }
.btn-danger  { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline {
  background: transparent; color: var(--sky-600);
  border: 1.5px solid var(--sky-400);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: var(--light); color: var(--gray); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-sm  { padding: 6px 14px; font-size: .8rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-full{ width: 100%; justify-content: center; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; border-radius: var(--radius-sm); }

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--dark);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100; transition: transform .3s ease;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sky-500), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.sidebar-logo-text .app-name {
  font-weight: 800; font-size: .95rem; color: white; line-height: 1.2;
}
.sidebar-logo-text .app-sub {
  font-size: .7rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em;
}
.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-400), var(--green-500));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; color: white; flex-shrink: 0;
}
.user-info .user-name  { font-size: .82rem; font-weight: 600; color: white; }
.user-info .user-role  { font-size: .7rem; color: rgba(255,255,255,.4); }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section-title {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.3); padding: 0 8px; margin: 16px 0 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 500;
  transition: all .2s; margin-bottom: 2px; position: relative;
}
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-link.active {
  color: white;
  background: linear-gradient(90deg, rgba(14,165,233,.25), rgba(14,165,233,.1));
}
.nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 99px;
  background: linear-gradient(var(--sky-400), var(--green-500));
}
.nav-link .nav-icon { width: 18px; text-align: center; font-size: 15px; }
.nav-badge {
  margin-left: auto; background: var(--danger);
  color: white; font-size: .65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 99px; min-width: 18px; text-align: center;
}
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-footer .nav-link { color: rgba(255,255,255,.4); }
.sidebar-footer .nav-link:hover { color: var(--danger); }

/* ===== HEADER ===== */
.main-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--dark); font-size: 20px; margin-right: 16px;
}
.header-title { font-weight: 700; font-size: 1rem; color: var(--dark); }
.header-title span { color: var(--gray); font-weight: 400; font-size: .85rem; margin-left: 6px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.notif-btn {
  position: relative; background: var(--light); border: 1.5px solid var(--border);
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--dark-3); font-size: 16px;
  transition: all .2s;
}
.notif-btn:hover { background: var(--blue-50); border-color: var(--sky-300); color: var(--sky-600); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid white;
  animation: pulse 1.5s infinite;
}
.notif-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--danger); color: white;
  font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .2s;
}
.header-user:hover { background: var(--light); }
.header-user .user-name { font-size: .82rem; font-weight: 600; }
.header-user .user-role { font-size: .7rem; color: var(--gray); }

/* ===== MAIN CONTENT ===== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  width: calc(100% - var(--sidebar-w));
}
.main-content { padding: 24px; flex: 1; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.page-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.page-title span { color: var(--sky-500); }
.page-subtitle { color: var(--gray); font-size: .85rem; margin-top: 2px; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--gray); margin-bottom: 4px;
}
.breadcrumb a { color: var(--sky-600); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-weight: 700; font-size: .95rem; color: var(--dark); }
.card-body { padding: 22px; }
.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--light);
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 50%;
  opacity: .06; transform: translate(20px, -20px);
}
.stat-card.blue  .stat-icon-bg { background: var(--blue-50);  color: var(--sky-600); }
.stat-card.blue::after  { background: var(--sky-500); }
.stat-card.green .stat-icon-bg { background: #F0FDF4;          color: var(--green-600); }
.stat-card.green::after { background: var(--green-500); }
.stat-card.yellow .stat-icon-bg { background: #FFFBEB;         color: var(--warning); }
.stat-card.yellow::after { background: var(--warning); }
.stat-card.red   .stat-icon-bg { background: #FFF1F2;          color: var(--danger); }
.stat-card.red::after   { background: var(--danger); }
.stat-icon-bg {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray); margin-top: 4px; font-weight: 500; }
.stat-change {
  font-size: .72rem; font-weight: 600; margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.data-table th {
  padding: 12px 16px; text-align: left;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gray); background: var(--light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dark-2);
  vertical-align: middle;
}
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--blue-50); }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-name { font-weight: 600; color: var(--dark); }
.td-mono { font-family: monospace; font-size: .82rem; color: var(--sky-700); font-weight: 600; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.badge-success { background: #F0FDF4; color: var(--green-700); }
.badge-danger  { background: #FFF1F2; color: #B91C1C; }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-info, .badge-primary { background: var(--blue-50); color: var(--sky-700); }
.badge-secondary { background: var(--light); color: var(--gray); }
.badge::before { content: '●'; font-size: 8px; }

/* ===== FORMS ===== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.form-select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px !important;
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: .75rem; color: var(--gray); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px; }
.required::after { content: ' *'; color: var(--danger); }
.checkbox-group { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-group input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--sky-500); }

/* ===== NOTIFICATIONS DROPDOWN ===== */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  z-index: 1000; overflow: hidden;
  animation: fadeInDown .2s ease;
  display: none;
}
.notif-dropdown.show { display: block; }
.notif-dropdown-header {
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .88rem;
}
.notif-item {
  padding: 12px 18px; display: flex; gap: 10px; align-items: flex-start;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s;
}
.notif-item:hover { background: var(--blue-50); }
.notif-item.unread { background: #F0F9FF; }
.notif-item-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.notif-icon-success { background: #F0FDF4; color: var(--green-600); }
.notif-icon-danger  { background: #FFF1F2; color: var(--danger); }
.notif-icon-info    { background: var(--blue-50); color: var(--sky-600); }
.notif-icon-warning { background: #FFFBEB; color: var(--warning); }
.notif-item-title { font-weight: 600; font-size: .82rem; color: var(--dark); }
.notif-item-msg   { font-size: .78rem; color: var(--gray); margin-top: 2px; }
.notif-item-time  { font-size: .7rem; color: var(--gray); margin-top: 4px; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(.96) translateY(10px); transition: transform .2s;
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-title { font-weight: 800; font-size: 1rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--light); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray); transition: all .2s;
}
.modal-close:hover { background: var(--danger); color: white; border-color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 500; margin-bottom: 16px;
  animation: fadeInDown .3s ease;
}
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-danger   { background: #FFF1F2; color: #991B1B; border: 1px solid #FEE2E2; }
.alert-warning  { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-info     { background: var(--blue-50); color: var(--sky-700); border: 1px solid var(--blue-200); }
.alert-close { margin-left: auto; cursor: pointer; opacity: .6; }
.alert-close:hover { opacity: 1; }

/* ===== SEARCH & FILTERS ===== */
.filters-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.search-box {
  flex: 1; min-width: 220px; position: relative;
}
.search-box input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .85rem; outline: none;
  transition: border-color .2s;
}
.search-box input:focus { border-color: var(--sky-400); box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 14px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--dark-3); transition: all .15s;
}
.page-btn:hover { background: var(--blue-50); border-color: var(--sky-300); color: var(--sky-600); }
.page-btn.active { background: var(--sky-500); border-color: var(--sky-500); color: white; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ===== IMPORT ZONE ===== */
.drop-zone {
  border: 2px dashed var(--sky-300);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  background: var(--blue-50);
  transition: all .2s;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--sky-500);
  background: var(--blue-100);
  transform: scale(1.01);
}
.drop-zone-icon { font-size: 48px; color: var(--sky-400); margin-bottom: 12px; }
.drop-zone p { color: var(--gray); font-size: .9rem; }
.drop-zone strong { color: var(--sky-600); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--gray);
}
.empty-state-icon { font-size: 56px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; color: var(--dark-3); margin-bottom: 6px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-dot {
  position: absolute; left: -24px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--sky-400);
  background: var(--sky-400);
}
.timeline-dot.green { background: var(--green-500); box-shadow: 0 0 0 2px var(--green-500); }
.timeline-dot.red { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.timeline-content { margin-left: 4px; }
.timeline-date { font-size: .72rem; color: var(--gray); }
.timeline-text { font-size: .85rem; color: var(--dark-2); font-weight: 500; }

/* ===== PROGRESS ===== */
.progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.progress-fill.blue  { background: linear-gradient(90deg, var(--sky-400), var(--blue-600)); }
.progress-fill.green { background: linear-gradient(90deg, var(--green-400), var(--green-600)); }

/* ===== LOADING ===== */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: white; animation: spin .7s linear infinite;
}
.page-loader {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--blue-900), var(--sky-700));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .4s;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-size: 48px; margin-bottom: 16px; animation: pulse 1.5s infinite; }
.loader-bar {
  width: 200px; height: 4px; background: rgba(255,255,255,.2);
  border-radius: 99px; overflow: hidden; margin-top: 16px;
}
.loader-progress {
  height: 100%; background: white; border-radius: 99px;
  animation: loadbar 1.2s ease forwards;
}

/* ===== TAGS ===== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 600;
  background: var(--blue-50); color: var(--sky-700);
  border: 1px solid var(--blue-200);
}

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.divider-text {
  display: flex; align-items: center; gap: 12px;
  color: var(--gray); font-size: .8rem;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.05); }
}
@keyframes loadbar {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in   { animation: fadeInUp .5s ease both; }
.fade-in-1 { animation: fadeInUp .5s .1s ease both; }
.fade-in-2 { animation: fadeInUp .5s .2s ease both; }
.fade-in-3 { animation: fadeInUp .5s .3s ease both; }
.fade-in-4 { animation: fadeInUp .5s .4s ease both; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, var(--border) 50%, var(--light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; width: 100%; }
  .header-toggle { display: flex !important; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 99;
  }
  .sidebar-overlay.show { display: block; }
}
@media (max-width: 768px) {
  .login-page { flex-direction: column; }
  .login-left { padding: 32px 24px; min-height: 40vh; }
  .login-right { width: 100%; padding: 32px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .main-content { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-brand h1 { font-size: 1.6rem; }
  .modal { border-radius: var(--radius-lg); }
}
