
/* ── CSS VARIABLES ── */
:root {
  --bg:        #F4F6F9;
  --surface:   #FFFFFF;
  --surface2:  #E8ECF2;
  --border:    #DDE2EA;
  --accent:    #1F6F8B;
  --accent-hover: #185d75;
  --accent2:   #D4863A;
  --text:      #1C2733;
  --muted:     #7A8899;
  --danger:    #C0392B;
  --success:   #2E7D52;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 64px;
  --bottom-nav-height: 64px;
  --transition: 0.2s ease;
}

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

/* Make sure hidden attribute always works */
[hidden] { display: none !important; }

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  /* Space at bottom for bottom nav on mobile */
  padding-bottom: var(--bottom-nav-height);
}

ul { list-style: none; }

button {
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ── ACCESSIBILITY ── */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus styles for keyboard nav */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── APP LAYOUT ── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR (hidden on mobile) ── */
.sidebar {
  display: none;
}

/* ── TOP BAR (mobile header) ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.top-bar-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover {
  background: var(--border);
  color: var(--text);
}

/* ── MAIN CONTAINER ── */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

main {
  flex: 1;
  padding: 1.25rem 1rem;
  outline: none;
}

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 0.5rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  min-width: 52px;
}

.bottom-nav-item i {
  font-size: 1.1rem;
}

.bottom-nav-item.active {
  color: var(--accent);
  background: rgba(31,111,139,0.08);
}

.bottom-nav-item:hover:not(.active) {
  color: var(--text);
  background: var(--surface2);
}

/* ── PAGE SECTIONS ── */
.page-section {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
  background: var(--surface2);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #a93226;
  border-color: #a93226;
}

.btn-outline {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-outline:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
}


/* ── HERO BANNER ── */
.hero-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.0) 100%
  );
  pointer-events: none;
}

/* Pin the stats grid to the bottom of the image */
.hero-banner .stats-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 1rem 1rem 1rem;
  z-index: 1;
  margin-bottom: 0;
}
/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(31,111,139,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-icon--amber {
  background: rgba(212,134,58,0.1);
  color: var(--accent2);
}

.stat-icon--green {
  background: rgba(46,125,82,0.1);
  color: var(--success);
}

.stat-icon--red {
  background: rgba(192,57,43,0.1);
  color: var(--danger);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 1.19rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* ── CHART CARD ── */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 7-day bar chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 170px;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 20%;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  min-height: 3px;
  transition: opacity var(--transition);
}

.chart-bar:hover { opacity: 1; }

.chart-day {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 500;
}

/* Tag breakdown bars */
.tag-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tag-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tag-bar-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  width: 80px;
  flex-shrink: 0;
}

.tag-bar-track {
  flex: 1;
  background: var(--surface2);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}

.tag-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.tag-bar-count {
  font-size: 0.72rem;
  color: var(--muted);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

/* Cap banner */
.cap-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--danger);
  margin-bottom: 1.25rem;
}

/* ── TOOLBAR (search + sort) ── */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-110%);
  color: var(--muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem 0.6rem 2.3rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input.invalid {
  border-color: var(--danger);
}

.search-error {
  display: block;
  font-size: 0.7rem;
  color: var(--danger);
  margin-top: 0.25rem;
  min-height: 1em;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sort-select, .sort-preferences {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  transform: translateY(-20%);
}

.sort-select:focus, .sort-preferences {
  border-color: var(--accent);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

/* ── EVENTS GRID ── */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state i {
  font-size: 2.5rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.88rem;
}

/* Event card */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.event-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.event-card-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.5rem;
}

.event-card-body {
  padding: 0.9rem;
}

.event-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(31,111,139,0.08);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: lowercase;
  margin-bottom: 0.45rem;
}

.event-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.event-card-data {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.event-card-data span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Mark — search highlight */
mark {
  background: rgba(212,134,58,0.25);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.required {
  color: var(--danger);
}

.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input.error {
  border-color: var(--danger);
}

/* Green border on valid input */
.form-input.success {
  border-color: var(--success);
}

/* Green success message text */
.form-success {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 500;
  min-height: 1.1em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-error {
  font-size: 0.72rem;
  color: var(--danger);
  font-weight: 500;
  min-height: 1.1em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.setting-input {
  width: 80px;
  text-align: center;
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── SETTINGS ── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.settings-card--full {
  grid-column: 1 / -1;
}

.settings-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-row-label {
  font-size: 0.83rem;
  color: var(--text);
  font-weight: 500;
}

/* Keyboard shortcuts */
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.shortcut-item:last-child {
  border-bottom: none;
}

kbd {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: 'Poppins', monospace;
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
}

/* ── STATS CONVERTER ── */
.converter-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.converter-symbol {
  color: var(--muted);
  font-size: 1rem;
  padding-bottom: 0.6rem;
  flex-shrink: 0;
}

/* ── ABOUT ── */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 580px;
}

.about-icon {
  width: 56px;
  height: 56px;
  background: rgba(31,111,139,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-app-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.about-description {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text);
}

.about-feature i {
  color: var(--accent);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition);
}

.contact-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive UI for tablet  */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  /* Hide mobile elements */
  .bottom-nav { display: none; }
  .top-bar { display: none; }

  /* Show sidebar (collapsed — icons only) */
  .sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-collapsed-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 1.2rem 0.6rem;
    align-items: center;
    transition: width var(--transition);
    overflow: hidden;
    flex-shrink: 0;
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .sidebar-logo-text { display: none; }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
  }

  .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    width: 100%;
    gap: 0.65rem;
  }

  .nav-item .nav-label { display: none; }

  .nav-item:hover {
    background: var(--surface2);
    color: var(--text);
  }

  .nav-item.active {
    background: rgba(31,111,139,0.1);
    color: var(--accent);
  }

  .sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
  }

  .sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.82rem;
    transition: background var(--transition), color var(--transition);
    width: 100%;
    gap: 0.65rem;
  }

  .sidebar-action-btn .nav-label { display: none; }

  .sidebar-action-btn:hover {
    background: var(--surface2);
    color: var(--text);
  }

  /* Main container adjusts */
  .main-container {
    overflow: hidden;
  }

  main {
    padding: 1.75rem 1.5rem;
  }

  /* Stats grid — 2 cols */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Events grid — 2 cols */
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Toolbar inline */
  .toolbar {
    flex-direction: row;
    align-items: center;
  }

  /* Form grid 2 cols */
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Settings 2 cols */
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Shortcuts 2 cols */
  .shortcuts-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* About contact row */
  .about-contact {
    flex-direction: row;
  }
  
  @keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* Responsive UI for Desktop */
@media (min-width: 1024px) {
  /* Full sidebar with labels */
  .sidebar {
    width: var(--sidebar-width);
    padding: 1.4rem 1rem;
    align-items: flex-start;
  }

  .sidebar-logo {
    justify-content: flex-start;
    padding-left: 0.5rem;
    gap: 0.5rem;
  }

  .sidebar-logo-text {
    display: block;
    font-size: 1rem;
    font-weight: 700;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 0.6rem 0.9rem;
  }

  .nav-item .nav-label { display: block; }

  .sidebar-action-btn {
    justify-content: flex-start;
    padding: 0.6rem 0.9rem;
  }

  .sidebar-action-btn .nav-label { display: block; }

  main {
    padding: 2rem 2.5rem;
  }

  /* Stats grid — 4 cols */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Events grid — 3 cols */
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Shortcuts 3 cols */
  .shortcuts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
