/* ============================================================
   AUTO-ÉCOLE SAAS - Design System
   Police : DM Sans (texte) + Outfit (headings)
   Palette : Bleu profond + Orange accent + Neutres
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #1A3A5C;
  --primary-light:  #2558A0;
  --primary-50:     #EBF2FB;
  --accent:         #F97316;
  --accent-light:   #FFF0E6;
  --success:        #16A34A;
  --success-light:  #DCFCE7;
  --warning:        #D97706;
  --warning-light:  #FEF3C7;
  --danger:         #DC2626;
  --danger-light:   #FEE2E2;
  --info:           #0284C7;
  --info-light:     #E0F2FE;
  --secondary:      #64748B;
  --secondary-light:#F1F5F9;
  --white:          #FFFFFF;
  --bg:             #F4F7FB;
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --sidebar-w:      240px;
  --topbar-h:       58px;
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 16px rgba(26,58,92,.08);
  --shadow-lg:      0 10px 40px rgba(26,58,92,.12);
  --transition:     all .18s cubic-bezier(.4,0,.2,1);
  --font-body:      'DM Sans', sans-serif;
  --font-head:      'Outfit', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 13px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; color: var(--text-primary); line-height: 1.3; }

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform .3s ease;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-brand-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-logo svg { width: 18px; height: 18px; color: white; }

.sidebar-brand-text { flex: 1; min-width: 0; }
.sidebar-brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 13.5px;
  color: white; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-brand-role {
  font-size: 10px; color: rgba(255,255,255,.5); font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; margin-top: 1px;
}

.sidebar-nav { padding: 10px 8px; flex: 1; }

.nav-section-label {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.35);
  padding: 14px 8px 4px; margin-top: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 500;
  transition: var(--transition); margin-bottom: 1px;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,.1); color: white;
}

.nav-item.active {
  background: rgba(255,255,255,.15); color: white;
}

.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}

.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-badge {
  margin-left: auto; background: var(--accent); color: white;
  font-size: 9px; font-weight: 700; padding: 1px 5px;
  border-radius: 20px; min-width: 16px; text-align: center;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.sidebar-user {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7); transition: var(--transition);
}

.sidebar-user:hover { background: rgba(255,255,255,.1); color: white; }

.sidebar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 11px; color: white; flex-shrink: 0;
}

.sidebar-user-name { font-size: 12px; font-weight: 600; color: white; }
.sidebar-user-role { font-size: 10px; color: rgba(255,255,255,.5); }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px;
  position: fixed; top: 0;
  right: 0; left: var(--sidebar-w);
  z-index: 99;
  box-shadow: var(--shadow-sm);
}

.topbar-toggle {
  display: none; background: none; border: none;
  padding: 6px; border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.topbar-breadcrumb { flex: 1; }
.topbar-breadcrumb h2 {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  font-family: var(--font-head);
}
.topbar-breadcrumb p { font-size: 11px; color: var(--text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.topbar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition); position: relative;
}
.topbar-btn:hover { background: var(--bg); color: var(--text-primary); }
.topbar-btn svg { width: 16px; height: 16px; }

.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid white;
}

.notif-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: white;
  font-size: 9px; font-weight: 700;
  padding: 0 3px; border-radius: 10px; min-width: 14px;
  text-align: center; border: 1.5px solid white;
}

/* ── Main content ───────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 20px;
  min-height: calc(100vh - var(--topbar-h));
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700;
  color: var(--text-primary);
}

.card-body { padding: 16px; }
.card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.primary::before   { background: var(--primary-light); }
.stat-card.accent::before    { background: var(--accent); }
.stat-card.success::before   { background: var(--success); }
.stat-card.warning::before   { background: var(--warning); }
.stat-card.danger::before    { background: var(--danger); }
.stat-card.info::before      { background: var(--info); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-header { display: flex; align-items: center; justify-content: space-between; }

.stat-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 16px; height: 16px; }

.stat-icon.primary   { background: var(--primary-50);  color: var(--primary-light); }
.stat-icon.accent    { background: var(--accent-light); color: var(--accent); }
.stat-icon.success   { background: var(--success-light); color: var(--success); }
.stat-icon.warning   { background: var(--warning-light); color: var(--warning); }
.stat-icon.danger    { background: var(--danger-light);  color: var(--danger); }
.stat-icon.info      { background: var(--info-light);    color: var(--info); }

.stat-value {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  color: var(--text-primary); line-height: 1;
}

.stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }

.stat-trend {
  font-size: 10.5px; font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}
.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 12.5px; }

thead th {
  background: var(--bg); color: var(--text-secondary);
  font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; padding: 9px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
  position: sticky; top: 0;
}

tbody tr { border-bottom: 1px solid var(--border-light); transition: background .1s; }
tbody tr:hover { background: var(--bg); }
tbody tr:last-child { border-bottom: none; }

tbody td { padding: 10px 12px; color: var(--text-primary); vertical-align: middle; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.badge-success   { background: var(--success-light);   color: var(--success); }
.badge-danger    { background: var(--danger-light);    color: var(--danger); }
.badge-warning   { background: var(--warning-light);   color: var(--warning); }
.badge-info      { background: var(--info-light);      color: var(--info); }
.badge-secondary { background: var(--secondary-light); color: var(--secondary); }
.badge-primary   { background: var(--primary-50);      color: var(--primary-light); }
.badge-accent    { background: var(--accent-light);    color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 600;
  border: 1px solid transparent; transition: var(--transition);
  white-space: nowrap; cursor: pointer; text-decoration: none;
}

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary   { background: var(--primary-light); color: white; border-color: var(--primary-light); }
.btn-primary:hover   { background: var(--primary); color: white; border-color: var(--primary); }
.btn-accent    { background: var(--accent); color: white; border-color: var(--accent); }
.btn-accent:hover    { background: #EA6A0E; color: white; }
.btn-success   { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover   { background: #15803D; color: white; }
.btn-danger    { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover    { background: #B91C1C; color: white; }
.btn-secondary { background: var(--secondary-light); color: var(--text-secondary); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }
.btn-outline   { background: transparent; color: var(--primary-light); border-color: var(--primary-light); }
.btn-outline:hover   { background: var(--primary-50); }
.btn-ghost     { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover     { background: var(--bg); color: var(--text-primary); }
.btn-sm { padding: 4px 10px; font-size: 11.5px; }
.btn-lg { padding: 10px 20px; font-size: 13.5px; }
.btn-icon { padding: 6px; border-radius: var(--radius-sm); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 5px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-primary);
  background: var(--surface); transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,88,160,.1); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 3px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 500;
  border-left: 3px solid; margin-bottom: 14px;
  animation: slideIn .3s ease;
}
.alert svg { width: 15px; height: 15px; flex-shrink: 0; }
.alert-close { margin-left: auto; background: none; border: none; cursor: pointer; opacity: .6; font-size: 16px; line-height: 1; }
.alert-close:hover { opacity: 1; }

.alert-success { background: var(--success-light); color: #15803D; border-color: var(--success); }
.alert-error   { background: var(--danger-light);  color: #B91C1C; border-color: var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-color: var(--warning); }
.alert-info    { background: var(--info-light);    color: var(--info);    border-color: var(--info); }

/* ── Search bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 10px;
}
.search-bar input {
  border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--text-primary); flex: 1;
}
.search-bar svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination-nav { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; flex-wrap: wrap; }
.pagination { display: flex; gap: 3px; list-style: none; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--primary-light); color: white; border-color: var(--primary-light);
}
.pagination-info { font-size: 11.5px; color: var(--text-muted); margin-left: auto; }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
}
.avatar-sm  { width: 28px; height: 28px; font-size: 11px; }
.avatar-md  { width: 38px; height: 38px; font-size: 14px; }
.avatar-lg  { width: 56px; height: 56px; font-size: 20px; }
.avatar-primary  { background: var(--primary-50);  color: var(--primary-light); }
.avatar-accent   { background: var(--accent-light); color: var(--accent); }
.avatar-success  { background: var(--success-light); color: var(--success); }

/* ── Progress bar ───────────────────────────────────────────── */
.progress { background: var(--border-light); border-radius: 20px; height: 6px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 20px; transition: width .6s ease;
  background: var(--primary-light);
}
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger  { background: var(--danger); }
.progress-bar.accent  { background: var(--accent); }

/* ── Dropdown ───────────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 160px; z-index: 200; padding: 4px;
  animation: fadeIn .15s ease;
}
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text-primary);
  transition: var(--transition); cursor: pointer;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item svg { width: 13px; height: 13px; color: var(--text-muted); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-light); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s ease;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 500px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slideUp .25s ease;
}
.modal-sm  { max-width: 380px; }
.modal-lg  { max-width: 700px; }
.modal-xl  { max-width: 900px; }
.modal-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.modal-close {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 12px 18px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ── Notifications panel ────────────────────────────────────── */
.notif-panel {
  position: fixed; top: var(--topbar-h); right: 0;
  width: 320px; background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0 var(--radius);
  box-shadow: var(--shadow-lg); z-index: 300;
  max-height: 70vh; overflow-y: auto;
  animation: slideDown .2s ease;
}
.notif-item {
  display: flex; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background .1s; cursor: pointer;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-50); }
.notif-dot-read {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-light); flex-shrink: 0; margin-top: 4px;
}
.notif-item.unread .notif-dot-read { opacity: 1; } 
.notif-item:not(.unread) .notif-dot-read { opacity: 0; }
.notif-content p { font-size: 12px; color: var(--text-primary); margin-bottom: 2px; }
.notif-time { font-size: 10.5px; color: var(--text-muted); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 48px; height: 48px; color: var(--border);
  margin: 0 auto 12px;
}
.empty-state h3 { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p  { font-size: 12.5px; }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.page-header-title h1 { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.page-header-title p  { font-size: 12px; color: var(--text-muted); }
.page-header-actions  { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Toolbar ────────────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--bg);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}

/* ── Auth layout ────────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh; display: flex; align-items: stretch;
  background: var(--bg);
}

.auth-left {
  width: 400px; background: var(--primary);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px;
  position: relative; overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.auth-left::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(249,115,22,.12);
}

.auth-left-content { position: relative; z-index: 1; }

.auth-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}

.auth-brand-icon {
  width: 44px; height: 44px; background: var(--accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.auth-brand-icon svg { width: 22px; height: 22px; color: white; }

.auth-brand-text .name {
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  color: white; line-height: 1.1;
}
.auth-brand-text .sub { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }

.auth-headline {
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  color: white; line-height: 1.2; margin-bottom: 14px;
}
.auth-headline span { color: var(--accent); }

.auth-desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 32px; }

.auth-features { display: flex; flex-direction: column; gap: 10px; }
.auth-feature {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); font-size: 12.5px;
}
.auth-feature-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(249,115,22,.2); border: 1px solid rgba(249,115,22,.4);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-feature-dot svg { width: 12px; height: 12px; color: var(--accent); }

.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px;
}

.auth-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; padding: 32px;
}

.auth-card h2 {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  margin-bottom: 6px;
}
.auth-card p { font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px; }

/* ── Print layout ───────────────────────────────────────────── */
.print-layout { background: white; min-height: 100vh; }
.recu-container { max-width: 500px; margin: 0 auto; padding: 40px 32px; }
.recu-header { text-align: center; margin-bottom: 28px; }
.recu-logo { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 10px; }
.recu-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--primary); }
.recu-subtitle { font-size: 12px; color: var(--text-muted); }
.recu-num { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.recu-body { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.recu-row { display: flex; border-bottom: 1px solid var(--border-light); }
.recu-row:last-child { border-bottom: none; }
.recu-col-label { width: 140px; padding: 10px 14px; background: var(--bg); font-size: 11.5px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }
.recu-col-value { padding: 10px 14px; font-size: 13px; color: var(--text-primary); }
.recu-total { background: var(--primary); color: white; padding: 14px 18px; border-radius: var(--radius-sm); text-align: center; }
.recu-total-label { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.recu-total-value { font-family: var(--font-head); font-size: 28px; font-weight: 800; margin-top: 2px; }
.recu-footer { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 20px; }
.recu-footer strong { color: var(--text-secondary); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideIn   { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse     { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.animate-fade  { animation: fadeIn  .3s ease; }
.animate-up    { animation: slideUp .3s ease; }

/* ── Utilities ──────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1       { gap: 4px; }
.gap-2       { gap: 8px; }
.gap-3       { gap: 12px; }
.gap-4       { gap: 16px; }
.mt-1        { margin-top: 6px; }
.mt-2        { margin-top: 12px; }
.mt-3        { margin-top: 18px; }
.mt-4        { margin-top: 24px; }
.mb-1        { margin-bottom: 6px; }
.mb-2        { margin-bottom: 12px; }
.mb-3        { margin-bottom: 18px; }
.mb-4        { margin-bottom: 24px; }
.text-sm     { font-size: 11.5px; }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-mono   { font-family: 'SFMono-Regular', Consolas, monospace; }
.w-full      { width: 100%; }
.hidden      { display: none !important; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3      { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-4      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-240px); width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .topbar { left: 0; }
  .topbar-toggle { display: flex; }
  .main-content { margin-left: 0; }
  .auth-left { display: none; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .main-content { padding: 14px; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin: 0; padding: 0; }
  body { background: white; }
}
