/* =========================
   BASE
========================= */

body.vaktliste {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family: Arial, sans-serif;
}

.page {
  min-height: 100vh;
  padding: 28px 10px;

  background:
    radial-gradient(
      circle at top,
      #1e293b 0,
      #0f172a 48%,
      #020617 100%
    );
}

.app-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
}


/* =========================
   PAGE TITLE
========================= */

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 18px;
}

.menu-button {
  all: unset;

  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: #ffffff;

  font-size: 30px;
  font-weight: 800;

  cursor: pointer;
}

.menu-button:hover {
  background: transparent;
}

.menu-button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.app-title {
  flex: 1;

  margin: 0;

  color: var(--text);

  font-size: 32px;
  font-weight: 800;
  text-align: center;
}


/* =========================
   CARDS
========================= */

.vakt-header-card,
.vakt-card {
  margin-bottom: 14px;

  background: var(--card-bg);
  border: 1px solid #1e293b;
  border-radius: 14px;

  box-shadow: var(--shadow);
}

.vakt-header-card {
  padding: 12px 14px;
}

.vakt-card {
  padding: 10px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}


/* =========================
   HEADER
========================= */

.header {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: transparent;
  color: var(--text);
}

.header-center {
  flex: 1;

  text-align: center;
}

.user-title {
  color: var(--green);

  font-weight: 800;
  letter-spacing: 0.3px;
}


/* =========================
   MONTH NAVIGATION
========================= */

.nav-wrapper {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;

  width: 100%;
  margin-top: 4px;
}

.month-title {
  min-width: 0;

  text-align: center;
}

.year {
  color: var(--text);

  font-size: 20px;
  font-weight: 800;
}

.month {
  color: var(--muted);

  font-size: 14px;
}

.month-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 78px;

  background: #182235;
  border: 1px solid var(--border);
  border-radius: 8px;

  color: #ffffff;

  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;
  user-select: none;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.month-nav-prev {
  justify-self: start;
}

.month-nav-next {
  justify-self: end;
}

.month-nav-button:hover {
  background: #24324a;
  border-color: #60a5fa;
}

.month-nav-button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

.month-nav-button:active {
  transform: scale(0.96);
}

.swipe-hint {
  display: none;

  margin-top: 4px;

  color: #8fa2c7;

  font-size: 12px;

  animation: swipeHint 2s infinite;
}

@keyframes swipeHint {
  0%,
  50%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}


/* =========================
   BUTTONS
========================= */

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  min-height: 38px;

  background: var(--blue);
  border: 0;
  border-radius: 10px;

  color: #ffffff;

  font-weight: 800;
  text-decoration: none;

  cursor: pointer;
}

.btn-icon:hover {
  background: var(--blue-dark);
}

.btn-base {
  padding: 10px;

  background: var(--blue);
  border: 0;
  border-radius: 10px;

  color: #ffffff;

  font-weight: 800;

  cursor: pointer;
}

.btn-base:hover {
  background: var(--blue-dark);
}


/* =========================
   FLOATING BACK BUTTON
========================= */

.floating-back {
  position: fixed;
  z-index: 9999;
  left: 15px;
  bottom: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  background: #1e293b;
  border: 1px solid var(--border);
  border-radius: 50%;

  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.35);

  color: #ffffff;

  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.floating-back:hover {
  background: #334155;
}

.floating-back:active {
  transform: scale(0.95);
}