:root {
  --oq-web-bg:
    linear-gradient(180deg, rgba(4, 9, 18, 0.7), rgba(7, 17, 31, 0.96)),
    radial-gradient(circle at 14% 8%, rgba(37, 211, 187, 0.22), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(99, 121, 255, 0.18), transparent 30%),
    url("/images/hero_scenic_norway.jpg") center top / cover fixed no-repeat;
  --oq-web-surface: rgba(12, 24, 40, 0.78);
  --oq-web-surface-strong: rgba(8, 18, 32, 0.9);
  --oq-web-surface-soft: rgba(255, 255, 255, 0.08);
  --oq-web-border: rgba(183, 211, 236, 0.2);
  --oq-web-border-strong: rgba(37, 211, 187, 0.34);
  --oq-web-text: #f7fcff;
  --oq-web-text-muted: #b8c9dc;
  --oq-web-text-soft: #dce8f4;
  --oq-web-accent: #25d3bb;
  --oq-web-accent-2: #7de6c9;
  --oq-web-accent-dark: #118194;
  --oq-web-shadow: 0 28px 80px rgba(2, 8, 18, 0.42);
  color-scheme: dark;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  background: var(--oq-web-bg) !important;
  color: var(--oq-web-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.76) 44%, rgba(7, 17, 31, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(37, 211, 187, 0.12), transparent 34%);
}

.oq-web-page {
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(4, 9, 18, 0.28), rgba(4, 9, 18, 0.78)),
    url("/images/hero_scenic_norway.jpg") center top / cover fixed no-repeat !important;
}

.oq-web-dashboard,
.oq-web-dashboard--production {
  width: min(1480px, 100%) !important;
  margin: 0 auto !important;
  color: var(--oq-web-text) !important;
}

.oq-web-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.oq-web-dashboard-sidebar,
.oq-web-dashboard-main,
.oq-web-surface-card,
.oq-web-metric-card,
.oq-web-detail-panel,
.oq-web-table-shell,
.oq-web-selectable-card,
.oq-web-report-capability-strip,
.oq-web-purpose-library__item,
.oq-web-receipt-preview,
.oq-web-empty-state {
  border: 1px solid var(--oq-web-border) !important;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 187, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(15, 29, 49, 0.88), rgba(9, 19, 34, 0.82)) !important;
  box-shadow: var(--oq-web-shadow) !important;
  backdrop-filter: blur(22px);
}

.oq-web-dashboard-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 56px);
  border-radius: 24px !important;
  padding: 18px !important;
  overflow: hidden;
}

.oq-web-dashboard-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background: url("/images/section_bg_map.jpg") center / cover no-repeat;
}

.oq-web-sidebar-brand {
  padding: 10px 8px 18px;
}

.oq-web-brand-lockup__mark {
  filter: drop-shadow(0 12px 30px rgba(37, 211, 187, 0.26));
}

.oq-web-brand-lockup__name,
.oq-web-page-header__title h1,
.oq-web-surface-card__title,
.oq-web-detail-panel__heading h2,
.oq-web-selectable-card strong,
.oq-web-definition-list dd,
.oq-web-sidebar-account strong {
  color: var(--oq-web-text) !important;
}

.oq-web-dashboard-main {
  border-radius: 26px !important;
  padding: 22px !important;
  min-width: 0;
}

.oq-web-page-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 24px !important;
  border: 1px solid rgba(183, 211, 236, 0.18);
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.86), rgba(7, 17, 31, 0.56)),
    url("/images/web_portal_dashboard.jpg") right center / min(620px, 54vw) auto no-repeat,
    linear-gradient(135deg, rgba(37, 211, 187, 0.18), rgba(14, 26, 44, 0.8));
  box-shadow: 0 22px 70px rgba(2, 8, 18, 0.34);
}

.oq-web-page-header__title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.oq-web-surface-card__eyebrow,
.oq-web-hero-card__eyebrow,
.oq-web-metric-card__label,
.oq-web-definition-list dt,
.oq-web-selectable-card__meta,
.oq-web-field-label,
.oq-web-empty-copy {
  color: var(--oq-web-text-muted) !important;
}

.oq-web-page-header__metrics,
.oq-web-report-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.oq-web-metric-card {
  border-radius: 16px !important;
  padding: 18px !important;
}

.oq-web-metric-card__value {
  color: var(--oq-web-text) !important;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
}

.oq-web-dashboard-content-area,
.oq-web-dashboard-grid,
.oq-web-master-detail-shell,
.oq-web-filter-grid,
.oq-web-finder-grid {
  gap: 18px;
}

.oq-web-surface-card,
.oq-web-detail-panel,
.oq-web-table-shell {
  border-radius: 18px !important;
  padding: 22px !important;
}

.oq-web-dashboard-main *,
.oq-web-dashboard-sidebar * {
  letter-spacing: 0 !important;
}

.oq-web-dashboard-main section,
.oq-web-dashboard-main article,
.oq-web-dashboard-main div,
.oq-web-dashboard-sidebar div,
.oq-web-dashboard-sidebar nav {
  scrollbar-color: rgba(37, 211, 187, 0.5) rgba(255, 255, 255, 0.08);
}

.oq-web-data-table,
.oq-web-table,
.oq-web-table-wrapper {
  background: transparent !important;
}

.oq-web-data-table th,
.oq-web-data-table td,
.oq-web-table th,
.oq-web-table td {
  border-color: rgba(183, 211, 236, 0.14) !important;
  color: var(--oq-web-text-soft) !important;
}

.oq-web-code-input,
.oq-web-select,
.oq-web-finder-input,
.oq-web-field input,
.oq-web-field select,
.oq-web-field textarea {
  border: 1px solid rgba(183, 211, 236, 0.22) !important;
  background: rgba(3, 10, 20, 0.62) !important;
  color: var(--oq-web-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.oq-web-code-input::placeholder,
.oq-web-finder-input::placeholder {
  color: rgba(220, 232, 244, 0.58) !important;
}

.oq-web-chip,
.oq-web-feature-pill {
  border-color: rgba(183, 211, 236, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--oq-web-text-soft) !important;
}

.oq-web-trip-map,
.leaflet-container {
  background: rgba(4, 12, 22, 0.9) !important;
  border-color: rgba(183, 211, 236, 0.16) !important;
}

.oq-web-tab-stack {
  display: grid;
  gap: 8px;
}

.oq-web-tab-button,
.oq-web-mobile-nav-item {
  min-height: 44px;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  color: var(--oq-web-text-muted) !important;
  background: transparent !important;
}

.oq-web-tab-button:hover,
.oq-web-mobile-nav-item:hover {
  color: var(--oq-web-text) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(183, 211, 236, 0.16) !important;
}

.oq-web-tab-button.is-selected,
.oq-web-mobile-nav-item.is-active,
.oq-web-selectable-card.is-selected {
  color: #06111e !important;
  background: linear-gradient(135deg, var(--oq-web-accent), var(--oq-web-accent-2)) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 34px rgba(37, 211, 187, 0.25) !important;
}

.oq-web-sidebar-footer {
  border-top: 1px solid rgba(183, 211, 236, 0.14);
  margin-top: 18px;
  padding-top: 18px;
}

.oq-web-sidebar-account span,
.oq-web-selectable-card span,
.oq-web-definition-list dt,
.oq-web-data-table,
.oq-web-table,
.oq-web-list-item,
.oq-web-chip,
.oq-web-field-hint {
  color: var(--oq-web-text-muted) !important;
}

.oq-web-primary-button,
.oq-web-secondary-button,
.oq-web-link-button {
  border-radius: 16px !important;
  font-weight: 800 !important;
}

.oq-web-primary-button {
  color: #06111e !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--oq-web-accent), var(--oq-web-accent-2)) !important;
  box-shadow: 0 16px 34px rgba(37, 211, 187, 0.26) !important;
}

.oq-web-secondary-button,
.oq-web-link-button {
  color: var(--oq-web-text) !important;
  border: 1px solid rgba(183, 211, 236, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.oq-web-secondary-button:hover,
.oq-web-link-button:hover {
  border-color: var(--oq-web-border-strong) !important;
  background: rgba(37, 211, 187, 0.12) !important;
}

.oq-web-code-input,
.oq-web-select,
.oq-web-finder-input,
input,
select,
textarea {
  color: var(--oq-web-text) !important;
  border: 1px solid rgba(183, 211, 236, 0.2) !important;
  background: rgba(4, 10, 20, 0.62) !important;
  border-radius: 16px !important;
}

.oq-web-code-input:focus,
.oq-web-select:focus,
.oq-web-finder-input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(37, 211, 187, 0.42) !important;
  border-color: rgba(37, 211, 187, 0.52) !important;
}

.oq-web-select option {
  color: #07111f;
  background: #f7fcff;
}

.oq-web-selectable-card,
.oq-web-list-item,
.oq-web-purpose-library__item {
  border-radius: 20px !important;
}

.oq-web-selectable-card:hover,
.oq-web-list-item:hover,
.oq-web-purpose-library__item:hover {
  border-color: rgba(37, 211, 187, 0.34) !important;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 187, 0.16), transparent 30%),
    rgba(17, 31, 52, 0.88) !important;
}

.oq-web-data-table,
.oq-web-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.oq-web-data-table th,
.oq-web-table th {
  color: var(--oq-web-text-muted) !important;
}

.oq-web-data-table td,
.oq-web-table td {
  color: var(--oq-web-text-soft) !important;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(183, 211, 236, 0.12);
  border-bottom: 1px solid rgba(183, 211, 236, 0.12);
}

.oq-web-chip,
.oq-web-chip--secondary {
  border-color: rgba(183, 211, 236, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.oq-web-success-copy {
  color: #7de6c9 !important;
}

.oq-web-error-banner {
  color: #ffd2cc !important;
  border-color: rgba(255, 125, 105, 0.34) !important;
  background: rgba(129, 36, 24, 0.28) !important;
}

.oq-web-trip-map,
.oq-web-trip-map__viewport,
.leaflet-container {
  border-radius: 22px !important;
  background: rgba(7, 17, 31, 0.72) !important;
}

.oq-web-trip-map {
  border: 1px solid rgba(183, 211, 236, 0.16) !important;
  overflow: hidden;
}

.oq-web-mobile-bottom-nav {
  border: 1px solid rgba(183, 211, 236, 0.18);
  background: rgba(7, 17, 31, 0.86) !important;
  backdrop-filter: blur(18px);
}

@media (max-width: 980px) {
  .oq-web-page {
    padding: 16px;
  }

  .oq-web-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .oq-web-dashboard-sidebar {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .oq-web-page-header {
    grid-template-columns: 1fr;
    padding: 22px;
    background:
      linear-gradient(180deg, rgba(7, 17, 31, 0.9), rgba(7, 17, 31, 0.72)),
      url("/images/web_portal_dashboard.jpg") center / cover no-repeat;
  }

  .oq-web-page-header__metrics,
  .oq-web-report-preview-grid {
    grid-template-columns: 1fr;
  }
}
