﻿.app-shell {
  background:
    radial-gradient(1200px 380px at 12% -5%, rgba(13, 71, 161, 0.08), transparent 60%),
    radial-gradient(1000px 360px at 86% 0%, rgba(255, 143, 0, 0.08), transparent 58%),
    var(--alpa-bg);
}

.app-shell .page-shell {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-left: clamp(10px, 1.2vw, 20px) !important;
  padding-right: clamp(10px, 1.2vw, 20px) !important;
}

.app-shell .app-navbar {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0 0 16px 16px;
  backdrop-filter: saturate(140%) blur(5px);
}

.app-shell .app-navbar .container-fluid {
  gap: 0.7rem;
}

.app-shell .app-menu-button {
  border-radius: 999px !important;
  font-weight: 600;
  padding: 0.44rem 0.95rem;
  letter-spacing: 0.2px;
}

.app-shell .app-navbar-title {
  line-height: 1.06;
  text-wrap: balance;
}

.app-shell .card {
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(13, 71, 161, 0.1) !important;
}

.app-shell .card-header {
  background: linear-gradient(120deg, rgba(13, 71, 161, 0.06), rgba(255, 143, 0, 0.08)) !important;
  font-weight: 600;
}

.app-shell .intro-card {
  border-left: 4px solid var(--alpa-blue-dark) !important;
}

.app-shell .home-tab .home-hero-card {
  border: 1px solid rgba(13, 71, 161, 0.16) !important;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.98)) !important;
}

.app-shell .home-cards-grid .home-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(13, 71, 161, 0.12) !important;
}

.app-shell .home-cards-grid .home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(13, 71, 161, 0.16) !important;
  border-color: rgba(13, 71, 161, 0.32) !important;
}

.app-shell .home-feature-link {
  text-decoration: none !important;
  position: relative;
  padding-bottom: 1px;
}

.app-shell .home-feature-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
  background: linear-gradient(90deg, var(--alpa-blue-dark), var(--alpa-orange));
}

.app-shell .home-feature-card:hover .home-feature-link::after {
  transform: scaleX(1);
}

.app-shell .home-feature-image {
  border-radius: 12px;
  border: 1px solid rgba(13, 71, 161, 0.12);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.app-shell .js-plotly-plot {
  border-radius: 12px;
}

.app-shell .js-plotly-plot .plotly,
.app-shell .js-plotly-plot .svg-container {
  border-radius: 12px;
}

.app-shell .dash-dropdown .Select__control,
.app-shell .Select__control {
  min-height: 38px;
}

.app-shell .app-offcanvas.offcanvas {
  border-right: 1px solid rgba(13, 71, 161, 0.18);
  box-shadow: 8px 0 34px rgba(15, 23, 42, 0.18);
}

.app-shell .app-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(13, 71, 161, 0.14);
  background: linear-gradient(90deg, rgba(13, 71, 161, 0.06), rgba(255, 143, 0, 0.08));
}

.app-shell .lang-flag-button {
  border-radius: 10px !important;
  line-height: 1;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.app-shell .lang-flag-icon {
  width: 22px;
  height: 16px;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.app-shell .map-side-panel {
  border: 1px solid rgba(13, 71, 161, 0.16) !important;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)) !important;
}

.app-shell .map-side-panel .card-body {
  max-height: var(--h-cf);
  overflow: auto;
}

.app-shell #tab-meteo .map-side-panel .card-body {
  max-height: none;
  overflow: visible;
}

.app-shell #tab-meteo .map-side-panel small,
.app-shell #tab-meteo .map-side-panel .form-check-label,
.app-shell #tab-meteo .map-side-panel label,
.app-shell #tab-meteo .map-side-panel .Select-placeholder,
.app-shell #tab-meteo .map-side-panel .Select-value-label,
.app-shell #tab-meteo .map-side-panel .Select-option,
.app-shell #tab-meteo .map-side-panel .VirtualizedSelectOption {
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
}

.app-shell #tab-meteo .map-side-panel .Select-control,
.app-shell #tab-meteo .map-side-panel .Select__control {
  min-height: 44px;
}

.app-shell #tab-meteo .map-side-panel .Select-value,
.app-shell #tab-meteo .map-side-panel .Select-placeholder {
  line-height: 1.2 !important;
  white-space: normal !important;
}

@media (min-width: 992px) {
  .app-shell .map-side-panel {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 992px) {
  .app-shell .app-navbar-title {
    font-size: 1.25rem !important;
  }

  .app-shell .home-feature-image {
    aspect-ratio: 3 / 2;
  }

  .app-shell .map-side-panel .card-body {
    max-height: none;
  }
}

@media (max-width: 576px) {
  .app-shell .page-shell {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .app-shell .home-cards-grid .home-feature-card:hover {
    transform: none;
  }
}
