/* ============================================================
   DriveSure — Global Stylesheet (White Glassmorphic Theme)
   ============================================================ */

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

:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #eff6ff;
  --secondary:     #0ea5e9;
  --accent:        #06b6d4;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #6366f1;

  --bg-main:       #f0f4ff;
  --bg-card:       rgba(255,255,255,0.75);
  --bg-sidebar:    rgba(255,255,255,0.85);

  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --border:        rgba(148,163,184,0.25);

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06),0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 16px rgba(37,99,235,0.08),0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:     0 12px 40px rgba(37,99,235,0.12),0 4px 12px rgba(0,0,0,0.08);
  --shadow-glow:   0 0 30px rgba(37,99,235,0.15);

  --radius:        14px;
  --radius-lg:     20px;
  --radius-sm:     8px;

  --glass:         blur(20px) saturate(180%);
  --transition:    all .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background gradient mesh ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 700px at 10% 10%, rgba(37,99,235,.08) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 80%, rgba(6,182,212,.07) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 60% 30%, rgba(99,102,241,.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.glass-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ── Stat Card ── */
.stat-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.stat-icon.blue   { background: rgba(37,99,235,.1);  color: var(--primary); }
.stat-icon.green  { background: rgba(16,185,129,.1); color: var(--success); }
.stat-icon.amber  { background: rgba(245,158,11,.1); color: var(--warning); }
.stat-icon.red    { background: rgba(239,68,68,.1);  color: var(--danger);  }
.stat-icon.indigo { background: rgba(99,102,241,.1); color: var(--info);    }
.stat-icon.cyan   { background: rgba(6,182,212,.1);  color: var(--accent);  }

.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-primary); font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-sub   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Layout ── */
.ds-layout   { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.ds-sidebar  {
  width: 260px; min-height: 100vh;
  background: var(--bg-sidebar);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-right: 1px solid var(--border);
  box-shadow: 2px 0 20px rgba(37,99,235,.06);
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
}
.ds-content  { margin-left: 260px; flex: 1; padding: 0; }

/* ── Sidebar ── */
.sidebar-brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo {
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand .logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.sidebar-brand .logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: var(--text-primary); }
.sidebar-brand .logo-sub  { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section { margin-bottom: 8px; }
.nav-section-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; padding: 8px 12px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.nav-item:hover    { background: rgba(37,99,235,.07); color: var(--primary); }
.nav-item.active   { background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.08)); color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.nav-item i        { width: 20px; text-align: center; font-size: 16px; }
.nav-badge         { margin-left: auto; background: var(--danger); color: white; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }

.sidebar-user {
  padding: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-user .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.sidebar-user .user-info .name   { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sidebar-user .user-info .role   { font-size: 11px; color: var(--text-muted); }
.sidebar-user .logout-btn {
  margin-left: auto;
  color: var(--text-muted); text-decoration: none;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-user .logout-btn:hover { background: rgba(239,68,68,.1); color: var(--danger); }

/* ── Topbar ── */
.ds-topbar {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.topbar-sub   { font-size: 12px; color: var(--text-muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-btn   {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border);
  background: white; color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); position: relative;
  text-decoration: none; font-size: 16px;
}
.topbar-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.notif-dot       { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid white; }

/* ── Page Content ── */
.page-content { padding: 28px; }
.page-header  { margin-bottom: 28px; }
.page-title   { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; color: var(--text-primary); }
.page-sub     { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: var(--transition);
  font-family: inherit; white-space: nowrap;
}
.btn-primary   { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-primary:hover   { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.45); }
.btn-success   { background: linear-gradient(135deg, var(--success), #059669); color: white; box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.btn-success:hover   { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,.4); }
.btn-danger    { background: linear-gradient(135deg, var(--danger), #dc2626); color: white; box-shadow: 0 4px 14px rgba(239,68,68,.3); }
.btn-danger:hover    { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,.4); }
.btn-warning   { background: linear-gradient(135deg, var(--warning), #d97706); color: white; box-shadow: 0 4px 14px rgba(245,158,11,.3); }
.btn-outline   { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover   { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-sm        { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-lg        { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-icon      { padding: 9px; border-radius: 9px; }
.btn-glass     { background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); border: 1px solid var(--border); color: var(--text-primary); }

/* ── Forms ── */
.form-group    { margin-bottom: 20px; }
.form-label    { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-control  {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px; background: rgba(255,255,255,.8);
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  transition: var(--transition); outline: none;
}
.form-control:focus   { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control::placeholder { color: var(--text-muted); }
.form-select         { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-hint           { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row            { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.col3       { grid-template-columns: 1fr 1fr 1fr; }

/* ── Table ── */
.ds-table-wrap { overflow-x: auto; border-radius: var(--radius); }
.ds-table      { width: 100%; border-collapse: collapse; }
.ds-table thead th {
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(6,182,212,.04));
  padding: 13px 16px; text-align: left;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 1px solid var(--border);
}
.ds-table tbody tr { transition: var(--transition); }
.ds-table tbody tr:hover { background: rgba(37,99,235,.03); }
.ds-table tbody td { padding: 13px 16px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid rgba(148,163,184,.1); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending    { background: rgba(245,158,11,.12); color: #b45309; }
.badge-processing { background: rgba(99,102,241,.12); color: #4338ca; }
.badge-approved   { background: rgba(16,185,129,.12); color: #065f46; }
.badge-completed  { background: rgba(16,185,129,.15); color: #065f46; }
.badge-rejected   { background: rgba(239,68,68,.12);  color: #991b1b; }
.badge-valid      { background: rgba(16,185,129,.12); color: #065f46; }
.badge-expired    { background: rgba(239,68,68,.12);  color: #991b1b; }
.badge-suspended  { background: rgba(245,158,11,.12); color: #b45309; }
.badge-paid       { background: rgba(16,185,129,.12); color: #065f46; }
.badge-failed     { background: rgba(239,68,68,.12);  color: #991b1b; }
.badge-passed     { background: rgba(16,185,129,.12); color: #065f46; }
.badge-info       { background: rgba(99,102,241,.12); color: #4338ca; }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid; }
.alert-success { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); color: #065f46; }
.alert-danger   { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.3);  color: #991b1b; }
.alert-warning  { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); color: #92400e; }
.alert-info     { background: rgba(37,99,235,.08);  border-color: rgba(37,99,235,.3);  color: #1e40af; }

/* ── Progress ── */
.progress-bar-wrap { background: rgba(148,163,184,.15); border-radius: 10px; height: 6px; overflow: hidden; }
.progress-bar      { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .6s ease; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: var(--transition); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box     { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(.96); transition: var(--transition); }
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-header  { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title   { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.modal-body    { padding: 20px 24px; }
.modal-footer  { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-close   { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 20px; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: rgba(239,68,68,.1); color: var(--danger); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { font-size: 52px; margin-bottom: 16px; opacity: .4; }
.empty-state h3    { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.empty-state p     { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* ── Timeline ── */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item  { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.tl-dot   { width: 40px; height: 40px; border-radius: 50%; border: 3px solid white; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; box-shadow: var(--shadow-sm); z-index: 1; }

/* ── File Upload ── */
.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer; transition: var(--transition);
  background: rgba(255,255,255,.5);
}
.file-drop:hover, .file-drop.dragover { border-color: var(--primary); background: var(--primary-light); }
.file-drop i  { font-size: 36px; color: var(--text-muted); margin-bottom: 10px; }
.file-drop p  { color: var(--text-secondary); font-size: 14px; }
.file-drop span { color: var(--primary); font-weight: 600; }

/* ── Search Bar ── */
.search-wrap { position: relative; }
.search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-wrap .form-control { padding-left: 40px; }

/* ── Official License Card (ISO ID-1 Style) ── */
.license-card-official {
  width: 100%;
  max-width: 450px;
  height: 280px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.1);
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  user-select: none;
}

/* Background patterns */
.license-card-official::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#3b82f6 0.5px, transparent 0.5px);
  background-size: 10px 10px;
  opacity: 0.05;
}

.license-header {
  height: 50px;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: white;
  justify-content: space-between;
}

.license-header .country-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.license-header .doc-type {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.license-body {
  padding: 15px 20px;
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.license-photo-area {
  width: 105px;
  height: 130px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.license-photo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-info {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 8px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 1px;
}

.info-value {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
}

.info-value.large {
  font-size: 15px;
  letter-spacing: 0.5px;
}

.license-footer {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.security-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 4px;
  position: absolute;
  top: 65px;
  left: 140px;
  opacity: 0.8;
  border: 0.5px solid rgba(0,0,0,0.1);
}

.watermark {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 120px;
  opacity: 0.03;
  transform: rotate(-15deg);
  pointer-events: none;
}

.qr-code {
  width: 45px;
  height: 45px;
  background: white;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.signature {
  font-family: 'Dancing Script', cursive; /* Fallback to a scripty look if available */
  font-size: 16px;
  font-style: italic;
  color: #1e3a8a;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 2px;
  width: 100px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ds-sidebar { 
    transform: translateX(-100%); 
    transition: transform 0.3s ease;
    width: 280px;
    box-shadow: 10px 0 30px rgba(15,23,42,0.15);
  }
  .ds-sidebar.open { transform: translateX(0); }
  .ds-content { margin-left: 0; width: 100%; }
  
  .ds-topbar { padding: 12px 16px; justify-content: space-between; }
  .topbar-right { gap: 8px; }
  .topbar-sub { display: none; }
  
  .form-row { grid-template-columns: 1fr !important; gap: 12px; }
  .form-row.col3 { grid-template-columns: 1fr !important; }
  
  .page-content { padding: 20px 16px; }
  .page-title { font-size: 20px; }

  /* Hamburger Toggle */
  .menu-toggle {
    display: flex !important;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: white; border: 1px solid var(--border);
    align-items: center; justify-content: center;
    color: var(--text-primary); cursor: pointer;
    font-size: 20px;
  }
  
  /* Sidebar Overlay when open */
  .sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    display: none;
  }
  .sidebar-overlay.active { display: block; }

  /* Table responsiveness */
  .ds-table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
    width: calc(100% + 32px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 600px) {
  .grid4, .grid3, .grid2 { grid-template-columns: 1fr !important; gap: 16px; }
  .stat-card { padding: 20px; }
  .stat-value { font-size: 24px; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
  
  .topbar-title { font-size: 16px; }
  .avatar { width: 32px; height: 32px; font-size: 12px; }
}

/* ── Sidebar User ── */
.sidebar-user {
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(37,99,235,.04);
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.08);
}
.sidebar-user .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(37,99,235,.15);
}
.sidebar-user .user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user .user-info .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-info .role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sidebar-user .logout-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-user .logout-btn:hover {
  background: rgba(239,68,68,.1);
  color: var(--danger);
}

/* ── Print ── */
@media print {
  .ds-sidebar, .ds-topbar, .btn, .nav-item { display: none !important; }
  .ds-content { margin-left: 0; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37,99,235,.4); }

/* ── Animations ── */
@keyframes fadeIn    { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn   { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:translateX(0)} }
@keyframes pulse     { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes spin      { to{transform:rotate(360deg)} }

.anim-fade  { animation: fadeIn .4s ease both; }
.anim-slide { animation: slideIn .35s ease both; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }

/* loading spinner */
.spinner { width: 22px; height: 22px; border: 3px solid rgba(37,99,235,.2); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }

/* ── Grid ── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width:1100px) { .grid4{grid-template-columns:1fr 1fr} .grid3{grid-template-columns:1fr 1fr} }
@media (max-width:700px)  { .grid4,.grid3,.grid2{grid-template-columns:1fr} }
