/* ==========================================================================
   VAPO GO — BASE STYLES & APPLICATION SHELL
   ========================================================================== */

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* --- APP LAYOUT SHELL --- */
#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* --- TOPBAR --- */
.topbar {
  height: 68px;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  flex-shrink: 0;
  box-sizing: border-box;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 196, 0.35));
  transition: transform var(--transition-normal);
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-text-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  user-select: none;
}

.brand-text-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-text-accent {
  color: var(--brand-cyan);
}

.brand-text-tagline {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.9;
}

.trip-badge-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-glass);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  max-width: 360px;
  min-width: 0;
  flex-shrink: 1;
}

.trip-switcher-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.trip-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  flex-shrink: 0;
}

.trip-badge-periodo {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-import-quick {
  background: var(--brand-gradient-accent);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-cyan-glow);
  transition: all var(--transition-fast);
}

.btn-import-quick:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.user-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.user-select-dropdown {
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

/* --- INFORMAÇÃO DO USUÁRIO LOGADO (substitui o antigo dropdown de impersonação) --- */
.user-info-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-full);
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-info-nome {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.user-info-papel {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.btn-theme-toggle {
  display: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --- HAMBÚRGUER (menu mobile) --- */
.btn-hamburguer {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  padding: 0;
}

.btn-hamburguer:hover {
  background: var(--bg-surface-raised);
  border-color: var(--brand-cyan);
}

.sidebar-header-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.sidebar-brand-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-mobile {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.sidebar-title-mobile {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.btn-fechar-sidebar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-glass);
  color: var(--text-secondary);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-fechar-sidebar:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: #EF4444;
}

.sidebar-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- TELA DE LOGIN --- */
.login-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  padding: 20px;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.login-brand-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.login-logo {
  height: 175px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0, 210, 196, 0.45));
  transition: transform var(--transition-normal);
}

.login-logo:hover {
  transform: scale(1.03);
}

.login-title {
  display: none;
}

.login-subtitle {
  display: none;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-input {
  width: 100%;
  padding-right: 42px;
}

.btn-toggle-password {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-toggle-password:hover {
  color: var(--brand-cyan);
  background: rgba(0, 210, 196, 0.12);
}

.login-form {
  text-align: left;
}

.login-erro {
  color: #EF4444;
  font-size: 0.82rem;
  min-height: 18px;
  margin: -6px 0 12px;
}

/* --- TOASTS (notificações não-bloqueantes) --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-cyan);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-success { border-left-color: #10B981; }
.toast-error { border-left-color: #EF4444; }
.toast-info { border-left-color: var(--brand-cyan); }

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- MAIN WORKSPACE --- */
.main-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 240px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  gap: 6px;
  flex-shrink: 0;
  z-index: 500;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 12px 4px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(0, 210, 196, 0.12);
  color: var(--brand-cyan);
  border-left: 3px solid var(--brand-cyan);
  font-weight: 600;
}

.nav-item-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.nav-item-badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.nav-item.active .nav-item-badge {
  background: var(--brand-cyan);
  color: var(--text-inverse);
  font-weight: 700;
}

/* --- VIEW CONTAINER --- */
.view-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.view-panel {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
}

.view-panel.active {
  display: flex;
  flex-direction: column;
}

.view-panel > * {
  flex-shrink: 0;
}

/* O mapa usa 100% sem padding */
#view-mapa.active {
  padding: 0;
  overflow: hidden;
}

/* --- DASHBOARD VIEW --- */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(7, 24, 48, 0.94) 0%, rgba(5, 14, 26, 0.98) 100%),
              url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80') center/cover;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(0, 210, 196, 0.25);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.25);
  position: relative;
  overflow: hidden;
  color: #FFFFFF !important;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0 !important;
  min-height: fit-content !important;
  height: auto !important;
}

.dashboard-hero .hero-slogan-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00D2C4 !important;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.dashboard-hero h1,
.dashboard-hero .hero-title {
  color: #FFFFFF !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 0 10px 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.dashboard-hero p,
.dashboard-hero .hero-subtitle {
  color: #E2E8F0 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  max-width: 860px !important;
  margin: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 0.95 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
  word-break: break-word;
}

/* --- SELETOR DE DIA NAS VIEWS --- */
.dia-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dia-switcher-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dia-switcher-select:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 2px rgba(0, 210, 196, 0.2);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* --- DAYS GRID (11 DIAS) --- */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.day-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.day-card:hover {
  border-color: var(--brand-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.day-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-cyan);
}

.day-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.day-city {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.day-status-pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

/* --- MODAIS GERAIS --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 26, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* --- FORMULÁRIOS & INPUTS --- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 2px rgba(0, 210, 196, 0.15);
}

/* --- BOTÕES --- */
.btn {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--brand-cyan);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--brand-cyan-light);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-ia-action {
  background: linear-gradient(135deg, #8B5CF6 0%, #00D2C4 100%);
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-ia-action:hover {
  filter: brightness(1.15);
}

/* ==========================================================================
   RESPONSIVO MULTI-DISPOSITIVO — TABLET (~1024px / 768px) E MOBILE (~640px / 480px)
   ========================================================================== */
@media (max-width: 1024px) {
  .btn-hamburguer {
    display: inline-flex;
  }

  .sidebar-header-mobile {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    max-width: 84vw;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    padding: 16px 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .topbar {
    height: 64px;
    padding: 0 16px;
  }

  .topbar-left {
    gap: 12px;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-text-name {
    font-size: 1.25rem;
  }

  .brand-text-tagline {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .trip-badge-selector {
    max-width: 240px;
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .trip-badge-periodo {
    display: none;
  }

  .user-info-text {
    display: none;
  }

  .main-workspace {
    width: 100%;
  }

  .view-panel {
    padding: 20px 16px;
  }

  .days-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .brand-text-tagline {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dashboard-hero {
    padding: 24px 18px;
    flex-shrink: 0 !important;
    min-height: fit-content !important;
    height: auto !important;
  }

  .dashboard-hero h1,
  .dashboard-hero .hero-title {
    font-size: 1.65rem !important;
  }

  .dashboard-hero p,
  .dashboard-hero .hero-subtitle {
    font-size: 0.92rem !important;
  }

  .section-title-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 58px;
    padding: 0 10px;
    gap: 8px;
    box-sizing: border-box;
  }

  .topbar-left {
    gap: 8px;
    min-width: 0;
  }

  .brand-wrapper {
    gap: 8px;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-text-name {
    font-size: 1.15rem;
  }

  .trip-badge-selector {
    display: none;
  }

  .topbar-right {
    gap: 8px;
  }

  .btn-import-quick {
    padding: 6px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
  }

  .btn-import-quick span + * {
    display: none;
  }

  .user-avatar-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  #btn-logout {
    padding: 5px 9px !important;
    font-size: 0.76rem !important;
  }

  .view-panel {
    padding: 12px 10px;
  }

  .dashboard-hero {
    padding: 18px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    flex-shrink: 0 !important;
    min-height: fit-content !important;
    height: auto !important;
  }

  .dashboard-hero h1,
  .dashboard-hero .hero-title {
    font-size: 1.3rem !important;
  }

  .dashboard-hero p,
  .dashboard-hero .hero-subtitle {
    font-size: 0.86rem !important;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .days-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .day-card {
    padding: 14px;
  }

  .modal-window {
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
    padding: 16px;
    margin: 8px auto;
  }

  .login-card {
    width: min(420px, 94vw);
    padding: 24px 18px;
  }
}
