/* =========================================
   Layout polish (desktop + mobile)
   ========================================= */

.main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Panel: bedre typografi og høyde */
.panel__title h1 {
  font-size: 26px;
  letter-spacing: -0.2px;
}

.panel__row {
  align-items: flex-start;
}

.panel__meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Gjør meta-piller penere */
.meta-pill {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}

.meta-pill__label {
  font-size: 12px;
  color: var(--muted);
}

.meta-pill__value {
  font-weight: 800;
  letter-spacing: .2px;
}

/* Filtre: litt strammere */
.filters {
  margin-top: 10px;
}

.subfilters {
  margin-top: 10px;
  align-items: center;
}

.subfilters__hint {
  margin-left: 6px;
  font-size: 13px;
}

/* Tom-state som card */
.empty {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
  max-width: 520px;
}

.empty__icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.empty__title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}

.empty__text {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Kort: litt mer “premium” spacing */
.card {
  border: 1px solid rgba(255,255,255,.06);
}

.card__top {
  align-items: center;
}

.dateblock {
  min-width: 64px;
}

.dateblock__date {
  font-size: 20px;
}

.title {
  font-size: 16px;
}

.subtitle {
  line-height: 1.35;
}

/* Desktop: gi panel og liste bedre rytme */
@media (min-width: 900px) {
  .panel {
    padding: 18px;
  }

  .cards {
    gap: 16px;
  }
}
/* ======================================================
   SHIFT CALLOUT — STYLE.CSS
   Industri-clean • Dark mode • Mobile first
   ====================================================== */

:root {
  --bg: #0b0f1a;
  --bg-2: #11172a;
  --panel: #141b33;
  --card: #171f3d;

  --text: #e7e9f1;
  --muted: #9aa2c7;

  --primary: #4f7cff;
  --primary-strong: #3a66f0;
  --danger: #ff5c5c;
  --success: #34d399;

  --radius: 14px;
  --radius-sm: 10px;

  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --border: 1px solid rgba(255,255,255,.08);

  --gap: 14px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 15px;
}

/* ------------------------------------------------------
   Background layers
------------------------------------------------------ */

  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, #1a2350 0%, transparent 40%),
              radial-gradient(circle at 90% 20%, #182050 0%, transparent 45%);
  z-index: -3;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-radials {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.04), transparent 70%);
  z-index: -1;
}

/* ------------------------------------------------------
   Layout
------------------------------------------------------ */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 70px;
}

.main {
  padding: 18px 16px 120px;
}

/* ------------------------------------------------------
   Topbar
------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,30,.85);
  backdrop-filter: blur(14px);
  border-bottom: var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

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

.brand__dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.brand__title {
  font-weight: 700;
  letter-spacing: .3px;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
}

.topbar__right {
  display: flex;
  gap: 10px;
}

/* ------------------------------------------------------
   Buttons
------------------------------------------------------ */

button {
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.primary-btn:hover {
  background: var(--primary-strong);
}

.primary-btn--small {
  padding: 8px 12px;
  font-size: 14px;
}

.secondary-btn {
  background: rgba(255,255,255,.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.danger-btn {
  background: rgba(255,92,92,.15);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------
   Panels / filters
------------------------------------------------------ */

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.panel__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel h1 {
  margin: 0;
  font-size: 22px;
}

.muted {
  color: var(--muted);
}

.filters,
.subfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters__spacer {
  flex: 1;
}

.search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 6px 10px;
}

.search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  width: 150px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 13px;
}

.chip.is-active {
  background: var(--primary);
}

/* ------------------------------------------------------
   Cards
------------------------------------------------------ */

.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.card__top {
  display: flex;
  gap: 12px;
}

.dateblock {
  text-align: center;
  min-width: 58px;
}

.dateblock__dow {
  font-size: 12px;
  color: var(--muted);
}

.dateblock__date {
  font-size: 18px;
  font-weight: 700;
}

.card__main {
  flex: 1;
}

.row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.badge {
  background: rgba(79,124,255,.2);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.title {
  margin-top: 4px;
  font-weight: 600;
}

.subtitle {
  font-size: 13px;
  margin-top: 2px;
}

.card__right {
  text-align: right;
}

.coverage__value {
  font-weight: 700;
}

.card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  font-size: 13px;
  margin-left: -6px;
}

.avatar--ghost {
  background: rgba(255,255,255,.05);
}

/* ------------------------------------------------------
   Bottom navigation
------------------------------------------------------ */

.bottomnav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: rgba(10,14,30,.95);
  backdrop-filter: blur(12px);
  border-top: var(--border);

  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.tab.is-active {
  color: var(--primary);
}

/* ------------------------------------------------------
   Modal
------------------------------------------------------ */

.modal::backdrop {
  background: rgba(0,0,0,.65);
}

.modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(95vw, 620px);
  background: var(--panel);
  color: var(--text);
}

.modal__content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal__header,
.modal__footer {
  padding: 16px;
  border-bottom: var(--border);
}

.modal__footer {
  border-top: var(--border);
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal__body {
  padding: 16px;
  overflow: auto;
}

.modal__title {
  font-weight: 700;
  font-size: 18px;
}

/* ------------------------------------------------------
   Forms
------------------------------------------------------ */

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field__label {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,.06);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text);
}

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

.field--full {
  grid-column: span 2;
}

/* ------------------------------------------------------
   Toasts
------------------------------------------------------ */

.toasts {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: var(--card);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
}

/* ------------------------------------------------------
   Small helpers
------------------------------------------------------ */

.small { font-size: 12px; }
.divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 12px 0;
}


/* ===============================
   iOS Safe Area – MINIMAL
   =============================== */

/* Topbar: akkurat nok under notch */
.topbar {
  padding-top: calc(10px + env(safe-area-inset-top));
}

/* Bottomnav: akkurat nok over home-indikator */
.bottomnav {
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}
