/* ============================================================
   style.css - TurniPro Gestione Turni Personale
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:            #f7f8fc;
  --sidebar-bg:    #ffffff;
  --sidebar-border:#e8eaf0;
  --sidebar-text:  #64748b;
  --sidebar-hover-bg: #f1f5f9;
  --sidebar-hover: #1e293b;
  --sidebar-active-bg: #eef2ff;
  --sidebar-active:#4f46e5;
  --sidebar-active-border: #4f46e5;
  --sidebar-w:     220px;

  --white:         #ffffff;
  --card:          #ffffff;
  --border:        #e8eaf0;
  --border-light:  #f1f5f9;

  --text-primary:  #1e293b;
  --text-secondary:#64748b;
  --text-muted:    #94a3b8;

  --primary:       #4f46e5;
  --primary-light: #eef2ff;
  --primary-dark:  #4338ca;

  --success:       #16a34a;
  --success-light: #dcfce7;
  --warning:       #d97706;
  --warning-light: #fef3c7;
  --danger:        #dc2626;
  --danger-light:  #fee2e2;
  --purple:        #7c3aed;
  --purple-light:  #ede9fe;
  --cyan:          #0891b2;
  --cyan-light:    #cffafe;

  --radius:        8px;
  --radius-sm:     6px;
  --radius-lg:     12px;

  --shadow-sm:     0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 24px rgba(0,0,0,.12);

  --transition:    .15s ease;
  --font:          'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font); }
img { display: block; max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Sidebar Logo ───────────────────────────────────────────── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem .9rem .85rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-logo .logo-icon {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo .logo-icon svg { width: 16px; height: 16px; color: #fff; }
.sidebar-logo .logo-text {
  font-size: .9rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -.2px;
}
.sidebar-logo .logo-sub {
  font-size: .6rem; color: var(--text-muted); letter-spacing: .3px;
}

/* ── Sidebar Nav ────────────────────────────────────────────── */
.sidebar-section { padding: .65rem .7rem .2rem; flex-shrink: 0; }
.sidebar-section-label {
  font-size: .6rem; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--text-muted); padding: 0 .45rem .35rem;
}
.nav-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .48rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: .8rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1px;
  position: relative;
}
.nav-item:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-hover); }
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px;
  background: var(--sidebar-active-border);
  border-radius: 0 3px 3px 0;
}
.nav-item .nav-icon {
  width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: .65;
}
.nav-item .nav-icon svg { width: 15px; height: 15px; }
.nav-item.active .nav-icon,
.nav-item:hover  .nav-icon { opacity: 1; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--danger); color: #fff;
  font-size: .57rem; font-weight: 700;
  padding: 1px 5px; border-radius: 10px;
}
.sidebar-divider { height: 1px; background: var(--sidebar-border); margin: .2rem .7rem; }

/* ── Sidebar Bottom ─────────────────────────────────────────── */
.sidebar-bottom {
  margin-top: auto;
  padding: .65rem .7rem;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.user-card {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.user-card:hover { background: var(--sidebar-hover-bg); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info .user-name { font-size: .77rem; font-weight: 600; color: var(--text-primary); }
.user-info .user-role { font-size: .63rem; color: var(--text-muted); }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; position: sticky; top: 0; z-index: 50; min-height: 54px;
}
.topbar-left h1 { font-size: 1rem; font-weight: 700; color: var(--text-primary); letter-spacing: -.2px; }
.topbar-left p  { font-size: .72rem; color: var(--text-secondary); margin-top: 1px; }
.topbar-right   { display: flex; align-items: center; gap: .6rem; }

/* ── Search ─────────────────────────────────────────────────── */
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap .search-icon {
  position: absolute; left: .6rem; color: var(--text-muted);
  pointer-events: none; display: flex;
}
.search-wrap .search-icon svg { width: 13px; height: 13px; }
.search-input {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .36rem .7rem .36rem 1.85rem;
  font-size: .77rem; color: var(--text-primary);
  width: 210px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
  background: #fff; width: 260px;
}
.search-results {
  display: none; position: absolute;
  top: calc(100% + 5px); left: 0; width: 310px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 300; max-height: 320px; overflow-y: auto;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem; cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
  font-size: .78rem;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }
.search-result-icon {
  width: 27px; height: 27px; border-radius: 6px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .7rem; font-weight: 700;
}
.search-result-name { font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.search-result-sub  { font-size: .7rem; color: var(--text-muted); }
.search-no-results  { padding: 1rem; text-align: center; color: var(--text-muted); font-size: .78rem; }

/* ── Page Content ───────────────────────────────────────────── */
.page-content { padding: 1.4rem; flex: 1; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: .8rem; margin-bottom: 1.4rem;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .95rem 1.1rem;
  display: flex; align-items: flex-start; gap: .8rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon.blue   { background: #eff6ff; color: #2563eb; }
.stat-icon.green  { background: var(--success-light); color: var(--success); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.red    { background: var(--danger-light); color: var(--danger); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-value { font-size: 1.45rem; font-weight: 700; color: var(--text-primary); line-height: 1; letter-spacing: -.5px; }
.stat-label { font-size: .72rem; color: var(--text-secondary); margin-top: .2rem; }
.stat-sub   { font-size: .65rem; color: var(--text-muted); margin-top: .15rem; }

/* ── Toolbar ────────────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: .85rem; margin-bottom: .8rem; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .42rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .77rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); white-space: nowrap; line-height: 1;
}
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.btn-primary  { background: var(--primary); color: #fff; box-shadow: 0 1px 3px rgba(79,70,229,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline  { background: #fff; color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost    { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); color: var(--text-primary); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm   { padding: .28rem .6rem; font-size: .7rem; }
.btn-icon { padding: .38rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: .8rem; }
.form-label { display: block; font-size: .74rem; font-weight: 600; color: var(--text-primary); margin-bottom: .3rem; }
.form-control {
  width: 100%; padding: .45rem .7rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .8rem; font-family: var(--font); color: var(--text-primary);
  background: #fff; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
select.form-control { cursor: pointer; }

/* ── Section Header ─────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem; flex-wrap: wrap; gap: .45rem;
}
.section-title { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.section-sub   { font-size: .72rem; color: var(--text-secondary); margin-top: 1px; }

/* ── Month Nav ──────────────────────────────────────────────── */
.month-nav {
  display: flex; align-items: center; gap: .3rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .22rem .38rem;
}
.month-nav .month-label {
  font-size: .78rem; font-weight: 700;
  min-width: 125px; text-align: center; color: var(--text-primary);
}

/* ── Turni Table ────────────────────────────────────────────── */
.turni-wrapper {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.turni-table {
  width: 100%; border-collapse: collapse;
  min-width: 900px; font-size: .7rem;
}
.turni-table thead tr { background: var(--bg); border-bottom: 1px solid var(--border); }
.turni-table th {
  padding: .45rem .25rem; text-align: center;
  font-weight: 600; color: var(--text-secondary);
  font-size: .62rem; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.turni-table th.th-dipendente {
  text-align: left; padding-left: .8rem;
  min-width: 175px; position: sticky; left: 0;
  background: var(--bg); z-index: 2;
}
.turni-table th.weekend   { color: var(--danger); background: rgba(220,38,38,.03); }
.turni-table th.today-col { color: var(--primary); background: rgba(79,70,229,.05); }
.turni-table th .day-num  { font-size: .72rem; font-weight: 700; color: var(--text-primary); display: block; }
.turni-table th .day-name { font-size: .56rem; color: var(--text-muted); }
.turni-table tbody tr { border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
.turni-table tbody tr:hover { background: rgba(79,70,229,.02); }
.turni-table tbody tr:last-child { border-bottom: none; }
.turni-table td { padding: .38rem .22rem; text-align: center; vertical-align: middle; }
.turni-table td.td-dipendente {
  text-align: left; padding: .48rem .8rem;
  position: sticky; left: 0; background: #fff; z-index: 1;
  border-right: 1px solid var(--border-light);
}
.turni-table tbody tr:hover td.td-dipendente { background: rgba(79,70,229,.02); }
.dip-name { font-weight: 600; font-size: .75rem; color: var(--text-primary); }
.dip-role { font-size: .62rem; color: var(--text-muted); margin-top: 1px; }
.turno-cell {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: .18rem .32rem;
  border-radius: 4px; font-size: .63rem; font-weight: 100;
  font-family: var(--font-mono); cursor: pointer;
  transition: all var(--transition); border: none;
  color: #fff !important; white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  letter-spacing: .2px;
}
.turno-cell:hover { filter: brightness(.82); transform: scale(1.08); }
/* Testo bianco su tutte le celle turno con sfondo */
.turno-cell:not(.vuoto) { color: #fff !important; }
.turno-cell.vuoto {
  background: transparent; color: var(--text-muted);
  border: 1px dashed var(--border); font-size: .56rem; min-width: 24px;
}
.turno-cell.vuoto:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
td.weekend-col { background: rgba(220,38,38,.02); }
td.today-col   { background: rgba(79,70,229,.04); }
.legenda { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: .9rem; }
.legenda-item { display: flex; align-items: center; gap: .28rem; font-size: .65rem; color: var(--text-secondary); }
.legenda-dot {
  width: 20px; height: 15px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: .56rem; font-weight: 700; font-family: var(--font-mono); color: #fff; flex-shrink: 0;
}
.ore-cell { font-family: var(--font-mono); font-size: .65rem; color: var(--text-secondary); font-weight: 600; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.45); backdrop-filter: blur(3px);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.4rem; width: 90%; max-width: 415px;
  box-shadow: var(--shadow-lg); animation: modalIn .17s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.modal-title  { font-size: .88rem; font-weight: 700; }
.modal-close  { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.05rem; padding: .2rem; transition: color var(--transition); }
.modal-close:hover { color: var(--text-primary); }
.modal-footer { display: flex; justify-content: flex-end; gap: .38rem; margin-top: 1.1rem; }

/* ── Generic Table ──────────────────────────────────────────── */
.table-wrapper { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.data-table thead th {
  padding: .55rem .8rem; text-align: left;
  font-size: .64rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-secondary);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.data-table tbody td { padding: .6rem .8rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(79,70,229,.02); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .16rem .48rem; border-radius: 20px; font-size: .63rem; font-weight: 700; }
.badge-green  { background: var(--success-light); color: #14532d; }
.badge-red    { background: var(--danger-light);  color: #7f1d1d; }
.badge-yellow { background: var(--warning-light); color: #78350f; }
.badge-blue   { background: #dbeafe; color: #1e3a8a; }
.badge-purple { background: var(--purple-light); color: #4c1d95; }
.badge-gray   { background: #f1f5f9; color: #334155; }

/* ── Alert ──────────────────────────────────────────────────── */
.alert { padding: .6rem .85rem; border-radius: var(--radius-sm); font-size: .76rem; margin-bottom: .8rem; }
.alert-danger  { background: var(--danger-light);  color: #7f1d1d; border: 1px solid #fca5a5; }
.alert-success { background: var(--success-light); color: #14532d; border: 1px solid #86efac; }
.alert-info    { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }

/* ── Login ──────────────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; background: var(--bg); }
.login-left {
  flex: 1; background: var(--primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem; position: relative; overflow: hidden;
}
.login-left::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.08); top: -80px; left: -80px; }
.login-left::after  { content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(255,255,255,.06); bottom: -55px; right: -55px; }
.login-brand { position: relative; text-align: center; z-index: 1; }
.login-brand .brand-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .9rem; backdrop-filter: blur(8px);
}
.login-brand .brand-icon svg { width: 26px; height: 26px; color: #fff; }
.login-brand h1 { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.login-brand p  { color: rgba(255,255,255,.75); margin-top: .35rem; font-size: .82rem; }
.login-features { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: .55rem; position: relative; z-index: 1; }
.login-features li { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.8); font-size: .8rem; }
.login-features li .fi { color: rgba(255,255,255,.9); }
.login-right { width: 410px; display: flex; align-items: center; justify-content: center; padding: 2.5rem; background: #fff; }
.login-card { width: 100%; }
.login-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .35rem; }
.login-card .login-sub { color: var(--text-secondary); font-size: .8rem; margin-bottom: 1.6rem; }

/* ── Print ──────────────────────────────────────────────────── */
.print-header { display: none; }

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { margin: 0; background: #fff; font-size: 9pt; }
  .sidebar, .topbar, .toolbar, .legenda, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 0 !important; }
  .print-header { display: block !important; padding: 0 0 7pt; border-bottom: 1.5pt solid #1e293b; margin-bottom: 9pt; }
  .print-header-inner { display: flex; justify-content: space-between; align-items: flex-end; }
  .print-title { font-size: 12pt; font-weight: 700; color: #1e293b; }
  .print-sub   { font-size: 7.5pt; color: #64748b; margin-top: 2pt; }
  .print-meta  { font-size: 7pt; color: #94a3b8; text-align: right; }
  .turni-wrapper { overflow: visible !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; width: 100% !important; }
  .turni-table { font-size: 7pt !important; min-width: unset !important; width: 100% !important; table-layout: fixed !important; border-collapse: collapse !important; }
  .turni-table th, .turni-table td { padding: 2pt 1pt !important; border: .5pt solid #e2e8f0 !important; }
  .turni-table th.th-dipendente, .turni-table td.td-dipendente { position: static !important; width: 108pt !important; min-width: unset !important; text-align: left; padding-left: 3pt !important; border-right: 1pt solid #cbd5e1 !important; }
  .dip-name { font-size: 7pt !important; font-weight: 600; }
  .dip-role { font-size: 5.5pt !important; }
  .turno-cell { min-width: unset !important; width: 100%; padding: 1.5pt 0 !important; font-size: 6pt !important; border-radius: 2pt !important; display: block !important; text-align: center; }
  .turno-cell.vuoto { border: none !important; background: transparent !important; color: transparent !important; }
  .ore-cell { font-size: 6.5pt !important; }
  .turni-table thead th { background: #f8fafc !important; }
  .turni-table th.weekend, .turni-table td.weekend-col { background: #fef2f2 !important; }
  .turni-table th.today-col, .turni-table td.today-col { background: #eef2ff !important; }
  @page { size: A4 landscape; margin: 8mm 7mm; }
}

/* ── Utilities ──────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: .73rem; }
.fw-600     { font-weight: 600; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; } .align-center { align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.ms-auto { margin-left: auto; } .w-100 { width: 100%; } .text-center { text-align: center; }
::-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); }
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-240px); }
  .sidebar.open { transform: translateX(0); width: 220px; }
  .login-left { display: none; }
  .login-right { width: 100%; }
}
