@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f7f2ea;
  --color-surface: rgba(255, 255, 255, 0.88);
  --color-surface-2: #fff6e6;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-primary: #0f766e;
  --color-primary-hover: #115e59;
  --color-accent: #f97316;
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-gold: #f59e0b;
  
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --color-bg: #0b1220;
  --color-surface: rgba(17, 24, 39, 0.9);
  --color-surface-2: #1f2937;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --shadow-md: 0 6px 10px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 22px -6px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Sora', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for nav */
}

h1, h2, h3, .bebas { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }

#app { max-width: 640px; margin: 0 auto; position: relative; min-height: 100vh; }
.view { padding: var(--space-4); animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1); }

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(15, 118, 110, 0.18), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.2), transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(15, 23, 42, 0.08), transparent 55%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.8;
}
.bg-orb.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(15, 118, 110, 0.45), rgba(15, 118, 110, 0.05));
  top: -120px;
  left: -80px;
}
.bg-orb.orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.45), rgba(249, 115, 22, 0.05));
  top: 40px;
  right: -120px;
}
.bg-orb.orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 40% 40%, rgba(16, 163, 74, 0.3), rgba(16, 163, 74, 0.04));
  bottom: -160px;
  left: 20%;
}

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

/* Glassmorphism Header */
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4); 
  background: var(--color-surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border); 
  position: sticky; top: 0; z-index: 10;
}
.header-logo { display: flex; align-items: center; gap: var(--space-2); }
.header-logo svg { width: 32px; height: 32px; fill: var(--color-primary); }
.header-title { font-family: 'Bebas Neue'; font-size: 26px; color: var(--color-primary); margin-top:4px;}
.header-actions { display: flex; gap: var(--space-3); align-items: center; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--color-text); font-size: 20px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.icon-btn:hover { color: var(--color-primary); transform: scale(1.1); }
.icon-btn:focus-visible { outline: 3px solid rgba(15, 118, 110, 0.35); outline-offset: 2px; border-radius: var(--radius-md); }

/* Glassmorphism Bottom Nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  display: flex; justify-content: space-around; padding: var(--space-2) 0; z-index: 20;
  max-width: 600px; margin: 0 auto; padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--color-text-muted); text-decoration: none; font-size: 11px; font-weight: 600;
  min-width: 50px; min-height: 44px; justify-content: center; background: none; border: none; cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.nav-item svg { width: 24px; height: 24px; stroke: currentColor; fill: none; transition: 0.2s; }
.nav-item.active { color: var(--color-primary); }
.nav-item.active svg { transform: translateY(-2px); stroke-width: 2.5; }
.nav-item:hover { color: var(--color-primary); }

/* Premium Cards */
.card {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-4);
  margin-bottom: var(--space-4); box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border); position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-accent-red { border-left: 4px solid var(--color-error); }
.card-accent-green { border-left: 4px solid var(--color-success); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: none; border-radius: var(--radius-md); font-weight: 600; cursor: pointer;
  min-height: 48px; padding: 0 var(--space-4); font-size: 16px; font-family: 'Inter', sans-serif;
  width: 100%; transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn { font-family: 'Sora', sans-serif; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.98); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover)); color: #fff; }
.btn-secondary { background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-danger { background: var(--color-error); color: #fff; }
.btn-fab {
  position: fixed; bottom: 80px; right: var(--space-4);
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover)); color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); z-index: 15;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s; border: none; cursor: pointer;
}
.btn-fab:hover { transform: scale(1.05); }
@media(min-width:600px) { .btn-fab { right: calc(50vw - 300px + 16px); } }

.btn-huge { height: 64px; font-size: 20px; border-radius: var(--radius-lg); font-weight: 700; letter-spacing: 0.5px; }
.btn-vou { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-naovou { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-auto-login { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; margin-top: 12px; }

/* Forms */
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; margin-bottom: var(--space-2); font-weight: 600; font-size: 14px; color: var(--color-text-muted); }
.form-control {
  width: 100%; min-height: 48px; padding: var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface-2); color: var(--color-text);
  font-size: 16px; font-family: 'Sora', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); background: var(--color-surface); }
.form-control::placeholder { color: rgba(107, 114, 128, 0.7); }
.form-control:focus-visible { outline: none; }

/* Utilities */
.text-muted { color: var(--color-text-muted); font-size: 14px; }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); }
.d-flex { display: flex; } .justify-between { justify-content: space-between; } .align-center { align-items: center; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }

/* Badges */
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--color-success); }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: var(--color-accent); }
.badge-gold { background: var(--color-gold); color: #000; }
.badge-gray { background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text-muted); }
.badge-primary { background: rgba(16, 185, 129, 0.1); color: var(--color-primary); border: 1px solid rgba(16, 185, 129, 0.2); }

/* Avatar */
.avatar { width: 44px; height: 44px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--color-surface-2), var(--color-border)); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; color: var(--color-text); box-shadow: var(--shadow-sm); }
.avatar-lg { width: 88px; height: 88px; font-size: 32px; margin: 0 auto; }

/* Modals */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(3,7,18,0.55); backdrop-filter: blur(6px); z-index: 100; align-items: flex-end; }
.modal-backdrop.active { display: flex; animation: fadeIn 0.2s; }
.modal-backdrop.modal-center { align-items: center; justify-content: center; padding: var(--space-4); }
.modal-content { background: var(--color-bg); width: 100%; max-width: 600px; margin: 0 auto; border-radius: 24px 24px 0 0; padding: var(--space-4); max-height: 90vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0,0,0,0.2); animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-content-center { border-radius: var(--radius-lg); max-height: 82vh; box-shadow: var(--shadow-lg); animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); position: sticky; top: -16px; background: var(--color-bg); padding-top: 16px; z-index: 5; border-bottom: 1px solid var(--color-border); padding-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 700; font-family: 'Bebas Neue'; letter-spacing: 1px; color: var(--color-primary); }
.modal-close { background: var(--color-surface-2); width: 36px; height: 36px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: var(--color-text); transition: 0.2s; }
.modal-close:hover { background: var(--color-border); transform: rotate(90deg); }
.detail-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-4); }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); font-size: 14px; }
.detail-row span { color: var(--color-text-muted); }
.detail-row strong { text-align: right; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* Toasts */
.toast-container { position: fixed; top: var(--space-4); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: var(--space-2); width: 90%; max-width: 400px; pointer-events: none; }
.toast { background: var(--color-surface); color: var(--color-text); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--space-2); border-left: 4px solid var(--color-primary); font-weight: 600; font-size: 14px; animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: blur(12px); }
.toast.error { border-left-color: var(--color-error); }

/* Calendar Grid */
.calendar-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 600; margin-bottom: var(--space-2); color: var(--color-text-muted); font-size: 12px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-day { min-height: 52px; border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; background: var(--color-surface); border: 1px solid transparent; position: relative; transition: 0.2s; box-shadow: var(--shadow-sm); }
.calendar-day:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border); }
.calendar-day.empty { background: transparent; border: none; cursor: default; box-shadow: none; }
.calendar-day.active { border-color: var(--color-primary); background: var(--color-surface-2); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.calendar-day.today { font-weight: 800; color: var(--color-primary); }
.calendar-dots { display: flex; gap: 3px; margin-top: 4px; }
.dot { width: 6px; height: 6px; border-radius: 3px; }
.dot-treino { background: var(--color-success); }
.dot-jogo { background: var(--color-error); }

/* Tabs */
.tabs { display: flex; background: var(--color-surface-2); border-radius: var(--radius-lg); padding: 4px; margin-bottom: var(--space-4); border: 1px solid var(--color-border); }
.tab { flex: 1; text-align: center; padding: 12px; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; color: var(--color-text-muted); transition: 0.2s; font-size: 14px; }
.tab.active { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }

/* Loader */
.full-page-loader { position: fixed; inset:0; background: var(--color-bg); z-index: 1000; display:flex; flex-direction: column; align-items:center; justify-content:center; backdrop-filter: blur(10px); }
.spinner { border: 4px solid var(--color-surface-2); border-top-color: var(--color-primary); border-radius: 50%; width: 48px; height: 48px; animation: spin 1s linear infinite; margin-bottom: var(--space-4); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Helpers */
.hidden { display: none !important; }
.banner-jogo { background: linear-gradient(135deg, #b91c1c, #ef4444); color: white; padding: var(--space-3); text-align: center; font-weight: 700; border-radius: var(--radius-md); margin-bottom: var(--space-4); display: flex; justify-content: center; gap: 8px; align-items: center; box-shadow: var(--shadow-md); font-size: 18px; letter-spacing: 0.5px; animation: pulseBanner 2s infinite; }
@keyframes pulseBanner { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.checklist-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3); border-bottom: 1px solid var(--color-border); background: var(--color-surface); margin-bottom: 8px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.checkbox-huge { width: 28px; height: 28px; accent-color: var(--color-primary); cursor: pointer; }
.emergency-btn { background: linear-gradient(135deg, var(--color-error), #dc2626); color: white; display: flex; align-items: center; justify-content: center; gap: 12px; padding: var(--space-4); border-radius: var(--radius-lg); text-decoration: none; font-weight: 700; font-size: 18px; margin-top: var(--space-4); box-shadow: 0 4px 15px rgba(239,68,68,0.4); transition: transform 0.2s; }
.emergency-btn:hover { transform: scale(1.02); }
.empty-state { text-align: center; padding: var(--space-8) var(--space-4); color: var(--color-text-muted); background: var(--color-surface-2); border-radius: var(--radius-lg); border: 1px dashed var(--color-border); margin-top: var(--space-4); }
.empty-icon { font-size: 48px; margin-bottom: var(--space-3); opacity: 0.7; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-4) 0; }
.pagination .btn { width: auto; min-height: 40px; font-size: 14px; }
.pagination span { color: var(--color-text-muted); font-weight: 700; min-width: 48px; text-align: center; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  background: var(--color-text);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: 999;
  font-weight: 600;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }


/* ═══════════════════════════════════════════════════════════
   SHARED LAYOUT — applies at all sizes
   app-shell  = sidebar + app-body (header + main)
   app-no-nav = login / register pages (no sidebar)
═══════════════════════════════════════════════════════════ */

/* Login / register: centred column, no sidebar */
.app-no-nav {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--space-6);
}
.app-no-nav > * {
  width: 100%;
  max-width: 480px;
}

/* ── Mobile default (bottom nav) ───────────────────────── */
body { padding-bottom: 80px; } /* room for bottom nav */

.app-shell {
  display: block; /* mobile: stacked */
}

/* Sidebar logo — hidden on mobile, sidebar acts as bottom nav */
.sidebar-logo { display: none; }

/* The .sidebar IS the bottom-nav on mobile — keep existing styles */
.sidebar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: var(--space-2) 0;
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
  z-index: 20;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

/* app-body: no special treatment on mobile */
.app-body {
  display: block;
}

/* #app keeps existing mobile styles */

/* ═══════════════════════════════════════════════════════════
   DESKTOP — ≥ 900px
   Sidebar becomes a vertical left rail.
   app-shell  → flex row
   app-body   → flex column (header on top, main below)
═══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

  body {
    padding-bottom: 0;
    overflow-x: hidden;
  }

  /* ── Shell: sidebar left + body right ─────────────────── */
  .app-shell {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
  }

  /* ── Sidebar ───────────────────────────────────────────── */
  .sidebar {
    /* override mobile fixed/bottom positioning */
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 220px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    border-top: none;
    border-right: 1px solid var(--color-border);
    border-bottom: none;
    box-shadow: 2px 0 16px rgba(0,0,0,0.04);
    overflow-y: auto;
    z-index: 20;
  }

  /* Sidebar logo strip */
  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 64px;
    padding: 0 var(--space-5);
    border-bottom: 1px solid var(--color-border);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--color-primary);
    flex-shrink: 0;
  }
  .sidebar-logo svg {
    width: 28px; height: 28px;
    fill: var(--color-primary);
    flex-shrink: 0;
  }

  /* Nav items: horizontal → vertical */
  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-3);
    padding: 14px var(--space-5);
    min-width: unset;
    min-height: 48px;
    font-size: 14px;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .nav-item:hover {
    background: rgba(15, 118, 110, 0.07);
    color: var(--color-primary);
    transform: none;
  }
  .nav-item.active {
    border-left-color: var(--color-primary);
    background: rgba(15, 118, 110, 0.1);
    color: var(--color-primary);
  }
  .nav-item.active svg { transform: none; stroke-width: 2; }
  .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

  /* ── App body (header + main) ──────────────────────────── */
  .app-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: 220px;
    min-height: 100vh;
  }

  /* ── Header ────────────────────────────────────────────── */
  .app-header {
    position: sticky;
    top: 0;
    z-index: 15;
    /* header-title visible again (shows brand in header too) */
  }

  /* ── Main content area ─────────────────────────────────── */
  #app {
    max-width: none;
    margin: 0;
    flex: 1;
  }

  .view {
    max-width: 1060px;
    margin: 0 auto;
    padding: var(--space-8);
  }

  /* Login/register page: still centred, just with more breathing room */
  .app-no-nav {
    padding-top: var(--space-8);
  }
  .app-no-nav > * {
    max-width: 480px;
  }

  /* ── FAB ───────────────────────────────────────────────── */
  .btn-fab {
    right: var(--space-8);
    bottom: var(--space-8);
  }

  /* ── Two-column card grids ─────────────────────────────── */
  .cards-grid,
  #boleiasContainer,
  #viaturasContainer,
  #comunicadosContainer,
  #plantelContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    align-items: start;
  }
  .cards-grid > .card,
  #boleiasContainer > .card,
  #viaturasContainer > .card,
  #comunicadosContainer > .card,
  #plantelContainer > .card { margin-bottom: 0; }
  .cards-grid > .empty-state,
  #boleiasContainer > .empty-state,
  #viaturasContainer > .empty-state,
  #comunicadosContainer > .empty-state,
  #plantelContainer > .empty-state { grid-column: 1 / -1; }

  /* ── Calendar ──────────────────────────────────────────── */
  .calendar-day { min-height: 68px; font-size: 15px; }

  /* ── Modals: centered dialog, no bottom-sheet ─────────── */
  .modal-backdrop {
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
  }
  .modal-content {
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .modal-actions .btn { width: auto; min-width: 120px; }

  /* ── Toast: top-right corner ───────────────────────────── */
  .toast-container {
    left: auto;
    right: var(--space-6);
    top: var(--space-5);
    transform: none;
    max-width: 360px;
    width: auto;
  }

  /* ── Background orbs ───────────────────────────────────── */
  .bg-orb.orb-1 { width: 500px; height: 500px; top: -180px; left: 160px; }
  .bg-orb.orb-2 { width: 420px; height: 420px; top: 60px; right: -80px; }
  .bg-orb.orb-3 { width: 560px; height: 560px; bottom: -200px; left: 40%; }
}

/* ═══════════════════════════════════════════════════════════
   WIDE DESKTOP — ≥ 1280px
═══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .sidebar { width: 240px; }
  .app-body { margin-left: 240px; }
  .view { max-width: 1200px; padding: var(--space-8) 48px; }

  #plantelContainer {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #bottomNav{
    flex-direction: column;

  }
}
