/* =====================================================
   INPTIC — Feuille de style principale
   Inspired by Oreo University Admin Template
   Colors: Vert Gabon #009639 | Or #FCD116 | Marine #1a2c54
   ===================================================== */

:root {
  --primary:       #1a2c54;   /* Bleu marine INPTIC */
  --primary-light: #243770;
  --accent:        #009639;   /* Vert Gabon */
  --accent-hover:  #007a2e;
  --gold:          #FCD116;   /* Or Gabon */
  --danger:        #e53935;
  --warning:       #fb8c00;
  --success:       #43a047;
  --info:          #039be5;
  --text-dark:     #1e2128;
  --text-muted:    #6b7280;
  --bg-body:       #f0f2f5;
  --bg-card:       #ffffff;
  --border:        #e5e7eb;
  --sidebar-w:     260px;
  --sidebar-w-col: 72px;
  --navbar-h:      64px;
  --radius:        10px;
  --shadow:        0 2px 12px rgba(26,44,84,.08);
  --shadow-lg:     0 8px 32px rgba(26,44,84,.14);
  --font-main:     'Inter', sans-serif;
  --font-display:  'Poppins', sans-serif;
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-dark);
  margin: 0;
  overflow-x: hidden;
}

/* ===================================================
   SIDEBAR
=================================================== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width var(--transition);
  overflow: hidden;
}

/* Brand */
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.sidebar-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}
.logo-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: .5px;
  display: block; line-height: 1;
}
.logo-sub { font-size: 11px; color: rgba(255,255,255,.55); display: block; margin-top: 2px; white-space: nowrap; }

/* User Panel */
.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.user-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { color: #fff; font-weight: 700; font-size: 15px; }
.user-name { color: #fff; font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; display: inline-block; margin-top: 3px; }
.badge-role-admin, .badge-role-directeur { background: var(--gold); color: var(--primary); }
.badge-role-professeur { background: var(--accent); color: #fff; }
.badge-role-etudiant { background: var(--info); color: #fff; }
.badge-role-bibliothecaire { background: #7c3aed; color: #fff; }

/* Navigation */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-section-title {
  padding: 14px 20px 6px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}
.nav-item { margin: 2px 0; }
.nav-link {
  display: flex; align-items: center;
  padding: 10px 20px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 13.5px; font-weight: 400;
  border-radius: 0;
  transition: all var(--transition);
  position: relative;
  gap: 12px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-item.active > .nav-link {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}
.nav-item.active > .nav-link::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.nav-icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-arrow { margin-left: auto; font-size: 10px; transition: transform var(--transition); }
.nav-link.has-sub.active .nav-arrow, .nav-link.has-sub:hover .nav-arrow { transform: rotate(90deg); }
.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--primary);
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
  display: none;
}
.nav-badge.show { display: inline-block; }

/* Sub-navigation */
.nav-sub { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; background: rgba(0,0,0,.15); }
.nav-sub.open { max-height: 300px; }
.nav-sub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px 8px 50px;
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
  text-decoration: none;
  transition: all var(--transition);
}
.nav-sub-link:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-sub-link i { font-size: 11px; width: 14px; text-align: center; }

/* Sidebar Footer */
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.btn-logout {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
}
.btn-logout:hover { color: var(--danger); background: rgba(229,57,53,.12); text-decoration: none; }

/* Collapsed sidebar */
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-col); }
body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .user-info,
body.sidebar-collapsed .nav-link span,
body.sidebar-collapsed .nav-arrow,
body.sidebar-collapsed .nav-badge,
body.sidebar-collapsed .nav-section-title,
body.sidebar-collapsed .sidebar-footer span { display: none; }
body.sidebar-collapsed .nav-link { padding: 12px; justify-content: center; gap: 0; }
body.sidebar-collapsed .nav-icon { margin: 0; }
body.sidebar-collapsed .main-content { margin-left: var(--sidebar-w-col); }

/* ===================================================
   MAIN CONTENT
=================================================== */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

/* TOP NAVBAR */
.top-navbar {
  position: sticky; top: 0; z-index: 900;
  height: var(--navbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  box-shadow: var(--shadow);
}
.sidebar-toggle {
  background: none; border: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--bg-body); color: var(--primary); }
.navbar-breadcrumb { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.breadcrumb-current { color: var(--primary); font-weight: 600; }
.navbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Search */
.navbar-search {
  display: flex; align-items: center;
  background: var(--bg-body);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
  min-width: 220px;
}
.navbar-search i { color: var(--text-muted); font-size: 13px; }
.navbar-search input {
  border: none; background: none;
  font-size: 13px; color: var(--text-dark);
  outline: none; width: 100%;
}
.navbar-search input::placeholder { color: var(--text-muted); }

/* Notifications */
.notif-btn {
  background: none; border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 16px;
  cursor: pointer; position: relative;
  transition: all var(--transition);
}
.notif-btn:hover { background: var(--bg-body); color: var(--primary); }
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: var(--danger);
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.notif-dropdown { width: 320px; padding: 0; border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; flex-shrink: 0; }

/* Profile */
.profile-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none;
  cursor: pointer; color: var(--text-dark);
  padding: 6px 10px; border-radius: 8px;
  transition: all var(--transition);
}
.profile-btn:hover { background: var(--bg-body); }
.profile-avatar {
  width: 34px; height: 34px;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 13px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.profile-name { font-size: 13px; font-weight: 500; }

/* ===================================================
   PAGE CONTENT
=================================================== */
.page-content { flex: 1; padding: 24px; }

/* Page Header */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--primary); margin: 0;
}
.page-subtitle { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }

/* ===================================================
   STATS CARDS
=================================================== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid var(--accent);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; right: -10px; top: -10px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: .06;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card.primary   { border-color: var(--primary); }
.stat-card.primary .stat-card-icon { background: rgba(26,44,84,.1); color: var(--primary); }
.stat-card.primary::after  { background: var(--primary); }
.stat-card.success   { border-color: var(--success); }
.stat-card.success .stat-card-icon { background: rgba(67,160,71,.1); color: var(--success); }
.stat-card.warning   { border-color: var(--warning); }
.stat-card.warning .stat-card-icon { background: rgba(251,140,0,.1); color: var(--warning); }
.stat-card.danger    { border-color: var(--danger); }
.stat-card.danger .stat-card-icon  { background: rgba(229,57,53,.1); color: var(--danger); }
.stat-card.info      { border-color: var(--info); }
.stat-card.info .stat-card-icon    { background: rgba(3,155,229,.1); color: var(--info); }
.stat-card.gold      { border-color: var(--gold); }
.stat-card.gold .stat-card-icon    { background: rgba(252,209,22,.15); color: #b8860b; }

.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-card-body { flex: 1; min-width: 0; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1; color: var(--primary); font-family: var(--font-display); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-trend { font-size: 11px; margin-top: 6px; font-weight: 600; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }
.stat-trend i { margin-right: 3px; }

/* ===================================================
   CARDS
=================================================== */
.card-inptic {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  margin-bottom: 20px;
  overflow: hidden;
}
.card-inptic .card-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.card-inptic .card-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--primary); margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.card-inptic .card-title i { color: var(--accent); }
.card-inptic .card-body { padding: 20px; }

/* ===================================================
   DATA TABLES
=================================================== */
.table-inptic thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  border: none;
  padding: 12px 14px;
  white-space: nowrap;
}
.table-inptic tbody tr { transition: background var(--transition); }
.table-inptic tbody tr:hover { background: rgba(26,44,84,.03); }
.table-inptic td { vertical-align: middle; padding: 12px 14px; border-color: var(--border); font-size: 13px; }
.table-inptic .avatar-cell { display: flex; align-items: center; gap: 10px; }
.table-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.table-name { font-weight: 600; color: var(--primary); }
.table-sub  { font-size: 11px; color: var(--text-muted); }

/* Status badges */
.badge-inptic {
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .3px;
}
.badge-actif    { background: rgba(67,160,71,.12); color: #2e7d32; }
.badge-suspendu { background: rgba(251,140,0,.12); color: #e65100; }
.badge-diplome  { background: rgba(3,155,229,.12); color: #0277bd; }
.badge-payé     { background: rgba(67,160,71,.12); color: #2e7d32; }
.badge-partiel  { background: rgba(251,140,0,.12); color: #e65100; }
.badge-impayé   { background: rgba(229,57,53,.12); color: #c62828; }
.badge-en_cours { background: rgba(3,155,229,.12); color: #0277bd; }
.badge-retourné { background: rgba(67,160,71,.12); color: #2e7d32; }
.badge-en_retard{ background: rgba(229,57,53,.12); color: #c62828; }

/* ===================================================
   FORMS
=================================================== */
.form-inptic .form-control {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-inptic .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,150,57,.12);
  outline: none;
}
.form-inptic label { font-weight: 600; font-size: 12px; color: var(--primary); margin-bottom: 5px; }

/* ===================================================
   BUTTONS
=================================================== */
.btn-primary-inptic {
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 9px 20px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary-inptic:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,44,84,.25); }
.btn-accent-inptic {
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  padding: 9px 20px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
}
.btn-accent-inptic:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,150,57,.3); text-decoration: none; }
.btn-sm-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-sm-icon.view  { background: rgba(3,155,229,.1); color: var(--info); }
.btn-sm-icon.edit  { background: rgba(251,140,0,.1); color: var(--warning); }
.btn-sm-icon.del   { background: rgba(229,57,53,.1); color: var(--danger); }
.btn-sm-icon:hover { filter: brightness(.9); transform: scale(1.1); }

/* ===================================================
   SCHEDULE / EMPLOI DU TEMPS
=================================================== */
.schedule-grid { display: grid; grid-template-columns: 80px repeat(6, 1fr); border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.schedule-header { background: var(--primary); color: #fff; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 700; }
.schedule-time { background: var(--bg-body); padding: 8px; text-align: center; font-size: 11px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.schedule-cell { padding: 4px; border: 1px solid var(--border); min-height: 60px; vertical-align: top; }
.schedule-event {
  background: var(--primary);
  color: #fff;
  padding: 6px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  margin-bottom: 2px;
  cursor: pointer;
}
.schedule-event.td  { background: var(--accent); }
.schedule-event.tp  { background: var(--info); }

/* ===================================================
   DASHBOARD CHARTS
=================================================== */
.chart-container { position: relative; }

/* ===================================================
   EVENTS
=================================================== */
.event-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.event-item:last-child { border-bottom: none; }
.event-date {
  width: 52px; height: 56px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.event-day { font-size: 22px; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.event-month { font-size: 10px; font-weight: 600; text-transform: uppercase; opacity: .8; }
.event-body { flex: 1; min-width: 0; }
.event-title { font-weight: 700; color: var(--primary); font-size: 13.5px; margin-bottom: 3px; }
.event-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.event-meta i { margin-right: 4px; }
.event-type { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; margin-top: 5px; }
.event-type.academique { background: rgba(26,44,84,.1); color: var(--primary); }
.event-type.sportif    { background: rgba(0,150,57,.1); color: var(--accent); }
.event-type.culturel   { background: rgba(252,209,22,.2); color: #8B6914; }

/* ===================================================
   LOGIN PAGE
=================================================== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #0f1f3d 50%, #1a3a2a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-box {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.login-logo {
  text-align: center; margin-bottom: 28px;
}
.login-logo .logo-circle {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 30px; color: #fff;
  box-shadow: 0 8px 24px rgba(0,150,57,.35);
}
.login-logo h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--primary); margin: 0; }
.login-logo p  { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; }
.login-divider { text-align: center; margin: 20px 0; color: var(--text-muted); font-size: 12px; }

/* ===================================================
   PROFILE PAGES
=================================================== */
.profile-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 20px;
}
.profile-hero-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
  border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
  color: #fff;
}
.profile-hero-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.profile-hero-sub  { opacity: .8; font-size: 13px; }
.profile-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.profile-badge { background: rgba(255,255,255,.15); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ===================================================
   INVOICES
=================================================== */
.invoice-header { background: var(--primary); color: #fff; padding: 32px; border-radius: var(--radius) var(--radius) 0 0; }
.invoice-body { padding: 32px; }
.invoice-logo { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold); }

/* ===================================================
   FOOTER
=================================================== */
.page-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
  flex-wrap: wrap; gap: 8px;
}
.footer-version { color: var(--accent); font-weight: 600; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main-content { margin-left: 0; }
  body.sidebar-open::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
  }
  .navbar-search { display: none; }
}
@media (max-width: 576px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 16px; }
  .login-box { padding: 28px 20px; }
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter input { border: 1.5px solid var(--border); border-radius: 7px; padding: 5px 10px; font-size: 13px; }
.dataTables_wrapper .dataTables_length select { border: 1.5px solid var(--border); border-radius: 7px; padding: 4px 8px; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; border-radius: 6px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bg-body) !important; border-color: var(--border) !important;
}

/* Flash messages */
.flash-message { border-radius: var(--radius); }

/* Loading animation */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: 6px; }
