/* ============================================================
   NEXUS — app.css
   Fichier principal des styles de l'interface
   À placer dans : public/css/app.css
   Inclure dans les layouts via :
     <link rel="stylesheet" href="{{ asset('css/app.css') }}">
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');


   /* ============================================================
      1. VARIABLES CSS (Design Tokens)
      ============================================================ */
   
   :root {
     /* Couleurs */
     --bg:            #f5f6fa;
     --surface:       #ffffff;
     --surface2:      #f0f1f7;
     --border:        #e4e6ef;
   
     --accent:        #4f6ef7;
     --accent-light:  #eef0fe;
     --accent-hover:  #3a57e0;
   
     --text:          #1a1d2e;
     --text-secondary:#6b7280;
     --text-light:    #9ca3af;
   
     --success:       #22c55e;
     --warning:       #f59e0b;
     --danger:        #ef4444;
   
     /* Layout */
     --sidebar-w:     240px;
     --header-h:      60px;
   
     /* Effets */
     --radius:        10px;
     --shadow:        0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
     --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
   }
   
   
   /* ============================================================
      2. RESET & BASE
      ============================================================ */
   
   *, *::before, *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
   }
   
   html {
     -webkit-text-size-adjust: 100%;
   }
   
   body {
     font-family: 'DM Sans', sans-serif;
     background: var(--bg);
     color: var(--text);
     min-height: 100vh;
     font-size: 14px;
     line-height: 1.5;
   }
   
   a {
     color: inherit;
     text-decoration: none;
   }
   
   button, input, select, textarea {
     font-family: inherit;
   }
   
   /* ============================================================
      3. SCROLLBAR PERSONNALISÉE
      ============================================================ */
   
   ::-webkit-scrollbar        { width: 5px; height: 5px; }
   ::-webkit-scrollbar-track  { background: transparent; }
   ::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 99px; }
   ::-webkit-scrollbar-thumb:hover { background: #c0c4d4; }
   
   /* Firefox */
   * {
     scrollbar-width: thin;
     scrollbar-color: var(--border) transparent;
   }
   
   
   /* ============================================================
      4. ANIMATIONS
      ============================================================ */
   
   @keyframes slideUp {
     from { opacity: 0; transform: translateY(24px); }
     to   { opacity: 1; transform: translateY(0); }
   }
   
   @keyframes fadeIn {
     from { opacity: 0; }
     to   { opacity: 1; }
   }
   
   
   /* ============================================================
      5. PAGE AUTH (Login)
      ============================================================ */
   
   .auth-page {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     background: linear-gradient(135deg, #eef0fe 0%, #f5f6fa 50%, #e8f5e9 100%);
     position: relative;
     overflow: hidden;
   }
   
   /* Décoration de fond */
   .auth-page::before {
     content: '';
     position: absolute;
     width: 600px; height: 600px;
     border-radius: 50%;
     background: radial-gradient(circle, rgba(79,110,247,.08) 0%, transparent 70%);
     top: -200px; left: -200px;
     pointer-events: none;
   }
   .auth-page::after {
     content: '';
     position: absolute;
     width: 400px; height: 400px;
     border-radius: 50%;
     background: radial-gradient(circle, rgba(34,197,94,.06) 0%, transparent 70%);
     bottom: -100px; right: -100px;
     pointer-events: none;
   }
   
   /* Carte de connexion */
   .auth-card {
     background: var(--surface);
     border-radius: 20px;
     padding: 48px 44px;
     width: 100%;
     max-width: 420px;
     box-shadow: var(--shadow-lg);
     border: 1px solid var(--border);
     position: relative;
     z-index: 1;
     animation: slideUp .45s cubic-bezier(.16,1,.3,1);
   }
   
   /* Logo dans la page auth */
   .auth-logo {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-bottom: 32px;
   }
   .auth-logo .logo-mark {
     width: 38px; height: 38px;
     background: var(--accent);
     border-radius: 10px;
     display: flex; align-items: center; justify-content: center;
     color: #fff;
     font-family: 'DM Mono', monospace;
     font-size: 15px;
     font-weight: 500;
     letter-spacing: -1px;
   }
   .auth-logo .logo-name {
     font-size: 20px;
     font-weight: 600;
     letter-spacing: -0.5px;
   }
   
   /* Titres de la page auth */
   .auth-title {
     font-size: 22px;
     font-weight: 600;
     margin-bottom: 6px;
   }
   .auth-subtitle {
     color: var(--text-secondary);
     margin-bottom: 28px;
     font-size: 14px;
   }
   
   /* Alertes */
   .alert {
     padding: 10px 14px;
     border-radius: 8px;
     font-size: 13px;
     margin-bottom: 18px;
     border: 1px solid transparent;
   }
   .alert-danger  { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
   .alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
   .alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
   
   /* Champs de formulaire */
   .field {
     margin-bottom: 18px;
   }
   .field label,
   .field-label {
     display: block;
     font-size: 13px;
     font-weight: 500;
     margin-bottom: 6px;
     color: var(--text);
   }
   .field input,
   .field-input {
     width: 100%;
     padding: 10px 14px;
     border: 1.5px solid var(--border);
     border-radius: var(--radius);
     font-size: 14px;
     color: var(--text);
     background: var(--bg);
     outline: none;
     transition: border-color .15s, box-shadow .15s;
   }
   .field input:focus,
   .field-input:focus {
     border-color: var(--accent);
     box-shadow: 0 0 0 3px rgba(79,110,247,.12);
     background: #fff;
   }
   .field input.is-invalid,
   .field-input.is-invalid {
     border-color: var(--danger);
   }
   .invalid-feedback {
     color: var(--danger);
     font-size: 12px;
     margin-top: 5px;
   }
   
   /* Ligne "Se souvenir de moi" */
   .remember-row {
     display: flex;
     align-items: center;
     justify-content: space-between;
     margin-bottom: 20px;
     font-size: 13px;
   }
   .remember-row label {
     display: flex;
     align-items: center;
     gap: 7px;
     cursor: pointer;
     color: var(--text-secondary);
   }
   .remember-row input[type="checkbox"] {
     accent-color: var(--accent);
     width: 14px; height: 14px;
   }
   
   
   /* ============================================================
      6. BOUTONS
      ============================================================ */
   
   /* Bouton primaire (pleine largeur, formulaires auth) */
   .btn-primary {
     width: 100%;
     padding: 11px;
     background: var(--accent);
     color: #fff;
     border: none;
     border-radius: var(--radius);
     font-size: 14px;
     font-weight: 600;
     cursor: pointer;
     transition: background .15s, transform .1s, box-shadow .15s;
     margin-top: 6px;
   }
   .btn-primary:hover  { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(79,110,247,.35); }
   .btn-primary:active { transform: scale(.98); }
   
   /* Bouton petit (actions dans tableaux, toolbars) */
   .btn-sm {
     padding: 8px 14px;
     border: 1.5px solid var(--border);
     border-radius: 8px;
     font-size: 13px;
     font-weight: 500;
     cursor: pointer;
     background: var(--surface);
     color: var(--text-secondary);
     transition: all .12s;
     display: inline-flex;
     align-items: center;
     gap: 6px;
   }
   .btn-sm:hover             { background: var(--bg); color: var(--accent); border-color: var(--accent); }
   .btn-sm.accent            { background: var(--accent); color: #fff; border-color: var(--accent); }
   .btn-sm.accent:hover      { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
   .btn-sm.danger            { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
   .btn-sm.danger:hover      { background: #fee2e2; border-color: var(--danger); }
   
   /* Bouton icône (topbar) */
   .icon-btn {
     width: 34px; height: 34px;
     border-radius: 8px;
     background: none;
     border: 1.5px solid var(--border);
     cursor: pointer;
     display: flex; align-items: center; justify-content: center;
     color: var(--text-secondary);
     transition: background .12s, border-color .12s, color .12s;
   }
   .icon-btn:hover { background: var(--bg); color: var(--accent); border-color: var(--accent); }
   
   
   /* ============================================================
      7. SIDEBAR
      ============================================================ */
   
   .sidebar {
     position: fixed;
     top: 0; left: 0;
     width: var(--sidebar-w);
     height: 100vh;
     background: var(--surface);
     border-right: 1px solid var(--border);
     display: flex;
     flex-direction: column;
     z-index: 100;
     transition: transform .25s cubic-bezier(.16,1,.3,1);
   }
   
   /* En-tête sidebar */
   .sidebar-header {
     padding: 0 20px;
     height: var(--header-h);
     display: flex;
     align-items: center;
     gap: 10px;
     border-bottom: 1px solid var(--border);
     flex-shrink: 0;
   }
   .sidebar-header .logo-mark {
     width: 32px; height: 32px;
     background: var(--accent);
     border-radius: 8px;
     display: flex; align-items: center; justify-content: center;
     color: #fff;
     font-family: 'DM Mono', monospace;
     font-size: 13px;
     font-weight: 500;
   }
   .sidebar-header .brand {
     font-weight: 600;
     font-size: 15px;
     letter-spacing: -0.3px;
   }
   .sidebar-header .version {
     margin-left: auto;
     font-size: 11px;
     background: var(--accent-light);
     color: var(--accent);
     padding: 2px 7px;
     border-radius: 20px;
     font-weight: 500;
   }
   
   /* Navigation */
   .sidebar-nav {
     flex: 1;
     overflow-y: auto;
     padding: 12px 10px;
   }
   
   .nav-section-label {
     font-size: 10.5px;
     font-weight: 600;
     letter-spacing: .08em;
     text-transform: uppercase;
     color: var(--text-light);
     padding: 10px 10px 5px;
     margin-top: 4px;
   }
   
   .nav-item {
     border-radius: 8px;
     overflow: hidden;
     margin-bottom: 1px;
   }
   
   .nav-link {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 9px 10px;
     border-radius: 8px;
     cursor: pointer;
     color: var(--text-secondary);
     font-size: 13.5px;
     font-weight: 500;
     transition: background .12s, color .12s;
     user-select: none;
     text-decoration: none;
   }
   .nav-link:hover          { background: var(--bg); color: var(--text); }
   .nav-link.active         { background: var(--accent-light); color: var(--accent); }
   
   .nav-icon {
     width: 18px; height: 18px;
     flex-shrink: 0;
     opacity: .7;
   }
   .nav-link.active .nav-icon { opacity: 1; }
   
   .nav-arrow {
     margin-left: auto;
     width: 14px; height: 14px;
     transition: transform .2s;
     opacity: .5;
   }
   .nav-link.open .nav-arrow { transform: rotate(90deg); }
   
   .nav-badge {
     margin-left: auto;
     background: var(--accent);
     color: #fff;
     font-size: 10px;
     font-weight: 700;
     padding: 1px 6px;
     border-radius: 20px;
     line-height: 16px;
   }
   
   /* Sous-menus */
   .nav-submenu {
     display: none;
     padding: 3px 0 3px 28px;
   }
   .nav-submenu.open { display: block; }
   
   .nav-sub-link {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 7px 10px;
     border-radius: 7px;
     cursor: pointer;
     color: var(--text-secondary);
     font-size: 13px;
     font-weight: 400;
     transition: background .12s, color .12s;
     user-select: none;
     text-decoration: none;
   }
   .nav-sub-link::before {
     content: '';
     width: 5px; height: 5px;
     border-radius: 50%;
     background: var(--border);
     flex-shrink: 0;
   }
   .nav-sub-link:hover          { background: var(--bg); color: var(--text); }
   .nav-sub-link.active         { color: var(--accent); font-weight: 500; }
   .nav-sub-link.active::before { background: var(--accent); }
   
   /* Pied de sidebar (profil utilisateur) */
   .sidebar-footer {
     padding: 14px;
     border-top: 1px solid var(--border);
     flex-shrink: 0;
   }
   .user-pill {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 8px 10px;
     border-radius: 10px;
     background: var(--bg);
     cursor: default;
     transition: background .12s;
   }
   .user-pill:hover { background: var(--surface2); }
   
   .user-avatar {
     width: 30px; height: 30px;
     border-radius: 50%;
     background: var(--accent);
     color: #fff;
     display: flex; align-items: center; justify-content: center;
     font-size: 12px;
     font-weight: 700;
     flex-shrink: 0;
   }
   .user-info  { flex: 1; min-width: 0; }
   .user-name  { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
   .user-role  { font-size: 11px; color: var(--text-light); }
   
   .logout-btn {
     background: none;
     border: none;
     cursor: pointer;
     color: var(--text-light);
     padding: 4px;
     border-radius: 6px;
     transition: color .12s, background .12s;
     display: flex;
   }
   .logout-btn:hover { color: var(--danger); background: #fef2f2; }
   
   
   /* ============================================================
      8. LAYOUT PRINCIPAL
      ============================================================ */
   
   .main-area {
     margin-left: var(--sidebar-w);
     min-height: 100vh;
     display: flex;
     flex-direction: column;
   }
   
   /* Topbar */
   .topbar {
     height: var(--header-h);
     background: var(--surface);
     border-bottom: 1px solid var(--border);
     display: flex;
     align-items: center;
     padding: 0 28px;
     gap: 16px;
     position: sticky;
     top: 0;
     z-index: 50;
   }
   .topbar-title   { font-size: 15px; font-weight: 600; flex: 1; }
   .topbar-actions { display: flex; align-items: center; gap: 10px; }
   
   /* Zone de contenu */
   .content-area { padding: 28px; flex: 1; }
   
   
   /* ============================================================
      9. COMPOSANTS — BREADCRUMB
      ============================================================ */
   
   .breadcrumb {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 12.5px;
     color: var(--text-light);
     margin-bottom: 20px;
   }
   .breadcrumb span         { color: var(--text-secondary); }
   .breadcrumb .sep         { opacity: .4; }
   .breadcrumb .current     { color: var(--accent); font-weight: 500; }
   
   
   /* ============================================================
      10. COMPOSANTS — CARDS STATISTIQUES
      ============================================================ */
   
   .stats-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 16px;
     margin-bottom: 24px;
   }
   
   .stat-card {
     background: var(--surface);
     border-radius: var(--radius);
     padding: 18px 20px;
     border: 1px solid var(--border);
     box-shadow: var(--shadow);
     display: flex;
     flex-direction: column;
     gap: 10px;
     transition: box-shadow .15s;
   }
   .stat-card:hover { box-shadow: var(--shadow-lg); }
   
   .stat-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
   }
   .stat-label {
     font-size: 12px;
     font-weight: 500;
     color: var(--text-secondary);
     text-transform: uppercase;
     letter-spacing: .04em;
   }
   .stat-icon {
     width: 32px; height: 32px;
     border-radius: 8px;
     display: flex; align-items: center; justify-content: center;
   }
   .stat-value {
     font-size: 24px;
     font-weight: 700;
     letter-spacing: -0.5px;
   }
   .stat-trend {
     font-size: 12px;
     color: var(--text-secondary);
     display: flex;
     align-items: center;
     gap: 4px;
   }
   .trend-up   { color: var(--success); }
   .trend-down { color: var(--danger); }
   
   
   /* ============================================================
      11. COMPOSANTS — TABLE DE DONNÉES
      ============================================================ */
   
   .table-card {
     background: var(--surface);
     border-radius: var(--radius);
     border: 1px solid var(--border);
     box-shadow: var(--shadow);
     overflow: hidden;
   }
   
   /* En-tête de la table (recherche, boutons) */
   .table-header {
     padding: 18px 20px;
     display: flex;
     align-items: center;
     gap: 14px;
     border-bottom: 1px solid var(--border);
     flex-wrap: wrap;
   }
   .table-title { font-size: 15px; font-weight: 600; flex: 1; }
   
   /* Recherche globale */
   .search-wrap { position: relative; }
   .search-wrap svg {
     position: absolute;
     left: 10px; top: 50%;
     transform: translateY(-50%);
     color: var(--text-light);
     pointer-events: none;
   }
   .search-input {
     padding: 8px 12px 8px 36px;
     border: 1.5px solid var(--border);
     border-radius: 8px;
     font-size: 13px;
     outline: none;
     background: var(--bg);
     color: var(--text);
     width: 220px;
     transition: border-color .15s, box-shadow .15s;
   }
   .search-input:focus {
     border-color: var(--accent);
     box-shadow: 0 0 0 3px rgba(79,110,247,.1);
     background: #fff;
   }
   
   /* Tableau */
   .table-wrap { overflow-x: auto; }
   
   table {
     width: 100%;
     border-collapse: collapse;
     font-size: 13.5px;
   }
   
   /* Ligne d'entêtes */
   thead th {
     background: var(--bg);
     font-weight: 600;
     font-size: 12px;
     text-transform: uppercase;
     letter-spacing: .04em;
     color: var(--text-secondary);
     padding: 11px 14px;
     text-align: left;
     border-bottom: 1px solid var(--border);
     white-space: nowrap;
   }
   thead th.sortable         { cursor: pointer; user-select: none; transition: color .12s; }
   thead th.sortable:hover   { color: var(--accent); }
   
   /* Indicateurs de tri */
   .sort-icon              { margin-left: 4px; opacity: .4; font-size: 10px; }
   .sort-icon::after       { content: '⬍'; }
   .sort-asc  .sort-icon::after { content: '▲'; opacity: 1; color: var(--accent); }
   .sort-desc .sort-icon::after { content: '▼'; opacity: 1; color: var(--accent); }
   
   /* Ligne de filtres par colonne */
   .filter-row th {
     padding: 7px 8px;
     background: var(--surface);
     border-bottom: 1px solid var(--border);
   }
   .col-filter {
     width: 100%;
     padding: 5px 9px;
     border: 1.5px solid var(--border);
     border-radius: 6px;
     font-family: 'DM Mono', monospace;
     font-size: 12px;
     outline: none;
     background: var(--bg);
     color: var(--text);
     transition: border-color .12s;
   }
   .col-filter:focus { border-color: var(--accent); background: #fff; }
   
   /* Corps du tableau */
   tbody tr              { transition: background .1s; }
   tbody tr:hover        { background: var(--bg); }
   tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    word-break: break-word;   /* ← coupe les mots longs */
    white-space: normal;       /* ← autorise le retour à la ligne */
    max-width: 250px;          /* ← largeur max avant coupure */
   }
   tbody tr:last-child td { border-bottom: none; }
   
   /* Cellule avatar + nom */
   .avatar-cell { display: flex; align-items: center; gap: 10px; }
   .mini-avatar {
     width: 28px; height: 28px;
     border-radius: 50%;
     font-size: 11px;
     font-weight: 700;
     color: #fff;
     display: flex; align-items: center; justify-content: center;
     flex-shrink: 0;
   }
   
   /* Pied de tableau (pagination) */
   .table-footer {
     padding: 14px 20px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     border-top: 1px solid var(--border);
     font-size: 13px;
     color: var(--text-secondary);
     flex-wrap: wrap;
     gap: 10px;
   }
   .pagination { display: flex; align-items: center; gap: 4px; }
   
   .page-btn {
     width: 30px; height: 30px;
     border-radius: 7px;
     border: 1.5px solid var(--border);
     background: var(--surface);
     cursor: pointer;
     font-family: 'DM Mono', monospace;
     font-size: 12px;
     font-weight: 500;
     color: var(--text-secondary);
     display: flex; align-items: center; justify-content: center;
     transition: all .12s;
   }
   .page-btn:hover    { background: var(--bg); color: var(--accent); border-color: var(--accent); }
   .page-btn.active   { background: var(--accent); color: #fff; border-color: var(--accent); }
   .page-btn:disabled { opacity: .35; cursor: not-allowed; }
   
   .per-page-select {
     padding: 5px 8px;
     border: 1.5px solid var(--border);
     border-radius: 7px;
     font-size: 13px;
     outline: none;
     background: var(--bg);
     color: var(--text);
     cursor: pointer;
     transition: border-color .12s;
   }
   .per-page-select:focus { border-color: var(--accent); }
   
   
   /* ============================================================
      12. COMPOSANTS — BADGES
      ============================================================ */
   
   .badge {
     display: inline-flex;
     align-items: center;
     padding: 3px 9px;
     border-radius: 20px;
     font-size: 11.5px;
     font-weight: 600;
     letter-spacing: .02em;
     white-space: nowrap;
   }
   .badge-green  { background: #dcfce7; color: #15803d; }
   .badge-blue   { background: #dbeafe; color: #1d4ed8; }
   .badge-yellow { background: #fef9c3; color: #a16207; }
   .badge-red    { background: #fee2e2; color: #b91c1c; }
   .badge-gray   { background: var(--surface2); color: var(--text-secondary); }
   .badge-purple { background: #f3e8ff; color: #7e22ce; }
   .badge-orange { background: #ffedd5; color: #c2410c; }
   
   
   /* ============================================================
      13. COMPOSANTS — PAGES VUES & PLACEHOLDERS
      ============================================================ */
   
   .page-view        { display: none; }
   .page-view.active { display: block; animation: fadeIn .2s ease; }
   
   .placeholder-page {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 80px 20px;
     text-align: center;
     color: var(--text-secondary);
   }
   .placeholder-icon {
     width: 56px; height: 56px;
     background: var(--accent-light);
     border-radius: 14px;
     display: flex; align-items: center; justify-content: center;
     margin-bottom: 16px;
     color: var(--accent);
   }
   .placeholder-page h3 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
   .placeholder-page p  { font-size: 13px; max-width: 300px; }
   
   
   /* ============================================================
      14. UTILITAIRES
      ============================================================ */
   
   .text-accent    { color: var(--accent); }
   .text-secondary { color: var(--text-secondary); }
   .text-light     { color: var(--text-light); }
   .text-danger    { color: var(--danger); }
   .text-success   { color: var(--success); }
   .text-warning   { color: var(--warning); }
   
   .font-mono      { font-family: 'DM Mono', monospace; }
   .font-medium    { font-weight: 500; }
   .font-semibold  { font-weight: 600; }
   .font-bold      { font-weight: 700; }
   
   .d-flex         { display: flex; }
   .align-center   { align-items: center; }
   .gap-8          { gap: 8px; }
   .gap-12         { gap: 12px; }
   .mt-4           { margin-top: 4px; }
   .mt-8           { margin-top: 8px; }
   .mt-16          { margin-top: 16px; }
   .mb-16          { margin-bottom: 16px; }
   .mb-24          { margin-bottom: 24px; }
   
   
   /* ============================================================
      15. RESPONSIVE
      ============================================================ */
   
   @media (max-width: 1200px) {
     .stats-grid { grid-template-columns: repeat(2, 1fr); }
   }
   
   @media (max-width: 900px) {
     .stats-grid  { grid-template-columns: repeat(2, 1fr); }
     .auth-card   { padding: 36px 28px; }
     .search-input{ width: 180px; }
   }
   
   @media (max-width: 640px) {
     :root {
       --sidebar-w: 0px;
     }
   
     .stats-grid   { grid-template-columns: 1fr; }
     .content-area { padding: 16px; }
   
     /* Sidebar en overlay sur mobile */
     .sidebar {
       width: 240px;
       transform: translateX(-100%);
     }
     .sidebar.open {
       transform: translateX(0);
       box-shadow: var(--shadow-lg);
     }
   
     .main-area { margin-left: 0; }
   
     .table-header { flex-wrap: wrap; gap: 8px; }
     .search-input { width: 100%; }
   
     .auth-card { margin: 16px; padding: 28px 20px; }
   }