@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;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --brand:          #185FA5;
  --brand-dark:     #0f4278;
  --brand-light:    #e6f1fb;
  --brand-mid:      #b5d4f4;

  --success:        #2d7d32;
  --success-bg:     #eaf3de;
  --warning:        #b45309;
  --warning-bg:     #fef3c7;
  --danger:         #b91c1c;
  --danger-bg:      #fef2f2;
  --info:           #0369a1;
  --info-bg:        #e0f2fe;
  --neutral:        #6b7280;
  --neutral-bg:     #f3f4f6;

  --bg:             #f0f4f8;
  --surface:        #ffffff;
  --surface-2:      #f8fafc;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;

  --text-1:         #0f172a;
  --text-2:         #334155;
  --text-3:         #64748b;
  --text-4:         #94a3b8;

  --sidebar-w:      220px;
  --topbar-h:       56px;

  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      16px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:      0 8px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);

  --font-ui:        'DM Sans', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── LAYOUT SHELL ───────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--brand-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}
.sidebar-logo {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-logo-title svg { flex-shrink: 0; opacity: .9; }
.sidebar-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  padding-left: 24px;
}
.sidebar-section {
  padding: 12px 10px 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin: 1px 6px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.nav-item.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-weight: 500;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--brand-mid);
  border-radius: 0 2px 2px 0;
}
.nav-item svg { flex-shrink: 0; opacity: .8; }
.nav-item.active svg { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.sidebar-spacer { flex: 1; }
.sidebar-user {
  padding: 12px 10px;
  margin: 6px;
  border-radius: var(--radius-md);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 10px; color: rgba(255,255,255,.4); }

/* ─── MAIN ───────────────────────────────────────────────────── */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text-1); flex: 1; }
.topbar-subtitle { font-size: 12px; color: var(--text-3); margin-top: 1px; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.content { flex: 1; overflow-y: auto; padding: 24px; }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 14px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-title svg { color: var(--text-3); }
.card-body { padding: 14px 18px 18px; }

/* ─── KPI TILES ──────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s var(--ease-out);
}
.kpi-tile:hover { box-shadow: var(--shadow-md); }
.kpi-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.kpi-tile.blue::before   { background: var(--brand); }
.kpi-tile.green::before  { background: var(--success); }
.kpi-tile.amber::before  { background: var(--warning); }
.kpi-tile.red::before    { background: var(--danger); }
.kpi-label { font-size: 11px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.kpi-value { font-size: 32px; font-weight: 300; line-height: 1; color: var(--text-1); font-variant-numeric: tabular-nums; }
.kpi-value.blue   { color: var(--brand); }
.kpi-value.green  { color: var(--success); }
.kpi-value.amber  { color: var(--warning); }
.kpi-value.red    { color: var(--danger); }
.kpi-sub { font-size: 11px; color: var(--text-4); margin-top: 6px; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}
.btn-primary   { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }
.btn-danger    { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }
.btn-danger:hover { background: #fee2e2; }
.btn-success   { background: var(--success-bg); color: var(--success); border-color: #86efac; }
.btn-ghost     { background: transparent; color: var(--text-3); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-1); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-spinner { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── BADGE ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  font-size: 11px; font-weight: 500;
  border-radius: 20px;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-blue    { background: var(--brand-light); color: var(--brand-dark); }
.badge-green   { background: var(--success-bg);  color: var(--success); }
.badge-amber   { background: var(--warning-bg);  color: var(--warning); }
.badge-red     { background: var(--danger-bg);   color: var(--danger); }
.badge-gray    { background: var(--neutral-bg);  color: var(--neutral); }

/* ─── PROGRESS BAR ───────────────────────────────────────────── */
.progress-wrap { display: flex; align-items: center; gap: 8px; }
.progress-track {
  flex: 1; height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s var(--ease-out);
}
.progress-fill.blue   { background: var(--brand); }
.progress-fill.green  { background: var(--success); }
.progress-fill.red    { background: var(--danger); }
.progress-fill.amber  { background: var(--warning); }
.progress-pct { font-size: 11px; color: var(--text-3); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* ─── TABLE ──────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  white-space: nowrap;
}
.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.data-table .td-upn { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); }
.data-table .td-muted { color: var(--text-4); font-size: 12px; }

/* ─── TABS ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-1); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ─── INPUT ──────────────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.input {
  padding: 8px 11px;
  font-family: var(--font-ui); font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-1);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24,95,165,.12); }
.input::placeholder { color: var(--text-4); }

/* ─── FILE DROP ZONE ─────────────────────────────────────────── */
.drop-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  background: var(--surface-2);
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--brand);
  background: var(--brand-light);
}
.drop-zone-icon { color: var(--text-4); margin-bottom: 8px; }
.drop-zone:hover .drop-zone-icon, .drop-zone.drag-over .drop-zone-icon { color: var(--brand); }
.drop-zone-title { font-size: 13px; font-weight: 500; color: var(--text-2); }
.drop-zone-sub { font-size: 11px; color: var(--text-4); margin-top: 3px; }
.drop-zone-cols { font-size: 11px; font-family: var(--font-mono); color: var(--brand); margin-top: 6px; background: var(--brand-light); display: inline-block; padding: 2px 10px; border-radius: var(--radius-sm); }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ─── LOG CONSOLE ────────────────────────────────────────────── */
.log-console {
  background: #0d1117;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #30363d #0d1117;
}
.log-console::-webkit-scrollbar { width: 6px; }
.log-console::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
.log-line { display: flex; gap: 10px; }
.log-ts   { color: #484f58; flex-shrink: 0; }
.log-ok   { color: #3fb950; }
.log-err  { color: #f85149; }
.log-warn { color: #d29922; }
.log-info { color: #58a6ff; }
.log-muted{ color: #484f58; }

/* ─── CHART CONTAINERS ───────────────────────────────────────── */
.chart-area { position: relative; }

/* ─── LAYOUT GRIDS ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3-1 { display: grid; grid-template-columns: 3fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* ─── PAGE SECTIONS ──────────────────────────────────────────── */
.page { display: none; animation: fadeIn .25s var(--ease-out); }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─── LOGIN SCREEN ───────────────────────────────────────────── */
.login-screen {
  position: fixed; inset: 0;
  background: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(24,95,165,.6) 0%, transparent 70%),
                    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(181,212,244,.08) 0%, transparent 60%);
}
.login-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  width: 380px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.login-logo { margin-bottom: 24px; }
.login-title { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.login-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.login-btn {
  width: 100%;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .15s;
}
.login-btn:hover { background: var(--brand-light); }
.login-footer { font-size: 11px; color: rgba(255,255,255,.25); margin-top: 20px; }

/* ─── PREVIEW TABLE ──────────────────────────────────────────── */
.preview-banner {
  background: var(--info-bg);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--info);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-4);
}
.empty-state svg { margin-bottom: 10px; opacity: .4; }
.empty-state p { font-size: 13px; }

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--text-1);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
  animation: slideIn .25s var(--ease-out), fadeOut .3s var(--ease-out) 3.7s forwards;
  max-width: 340px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideIn   { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut   { to { opacity: 0; transform: translateX(10px); } }

/* ─── LOADER OVERLAY ─────────────────────────────────────────── */
.loader-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 150;
  display: none;
}
.loader-overlay.show { display: flex; }
.loader-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3-1, .grid-2-1 { grid-template-columns: 1fr; }
  .sidebar { width: 56px; }
  .sidebar-logo-sub, .nav-item span, .sidebar-user-info, .sidebar-logo-title span { display: none; }
  .sidebar-section { display: none; }
}

/* ─── AUTOCOMPLETE DROPDOWN ──────────────────────────────────── */
.upn-dropdown {
  position: absolute;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--font-ui);
  scrollbar-width: thin;
}
.upn-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--border);
  font-family: var(--font-ui);
}
.upn-dropdown-item:last-child { border-bottom: none; }
.upn-dropdown-item:hover { background: var(--surface-2); }
.upn-dropdown-upn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-1);
}
.upn-dropdown-name {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-4);
  margin-top: 1px;
}


/* ─── CALENDARIO MIGRAZIONI / SCHEDULAZIONI ─────────────────── */
.calendar-summary,
#schedule-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mini-stat {
  min-width: 104px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.mini-stat span { font-size: 20px; font-weight: 500; line-height: 1; }
.mini-stat small { font-size: 11px; color: var(--text-3); }
.mini-stat.blue { background: var(--brand-light); border-color: #bfdbfe; color: var(--brand); }
.mini-stat.green { background: var(--success-bg); border-color: #bbf7d0; color: var(--success); }
.mini-stat.red { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.mini-stat.amber { background: var(--warning-bg); border-color: #fde68a; color: var(--warning); }
.mini-stat.neutral { background: var(--neutral-bg); color: var(--neutral); }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.calendar-weekdays div { text-align: center; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-cell {
  min-height: 108px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  font-family: var(--font-ui);
}
.calendar-cell:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--brand-mid); }
.calendar-cell.empty { background: transparent; border: none; cursor: default; box-shadow: none; }
.calendar-cell.completed { border-left: 4px solid var(--success); }
.calendar-cell.failed { border-left: 4px solid var(--danger); }
.calendar-cell.active { border-left: 4px solid var(--warning); }
.calendar-cell.scheduled { border-left: 4px solid var(--brand); }
.calendar-daynum { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 7px; }
.calendar-badge {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  margin: 3px 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.calendar-badge.blue { color: var(--brand); background: var(--brand-light); }
.calendar-badge.green { color: var(--success); background: var(--success-bg); }
.calendar-badge.red { color: var(--danger); background: var(--danger-bg); }
.calendar-badge.amber { color: var(--warning); background: var(--warning-bg); }
.status-badge.neutral { background: var(--neutral-bg); color: var(--neutral); }
@media (max-width: 1100px) {
  .calendar-grid, .calendar-weekdays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-weekdays { display: none; }
}

.sidebar-logout {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  cursor: pointer;
  text-align: left;
}
.sidebar-logout:hover { color: #fff; text-decoration: underline; }
