html,
body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  background-color: #000;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  background: transparent; /* viktigt */
}

/* Fast bakgrundslager som aldrig "tar slut" när du scrollar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image: url("/static/img/hero.jpg");
  background-size: cover;
  background-position: 65% bottom;
  background-repeat: no-repeat;
}


* {
  box-sizing: border-box;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.topbar {
  background: rgba(10, 2, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.55);
  padding: 6px 20px;
}

.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffe7f7;
}

.card-narrow {
  max-width: 400px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.25rem;
}

input,
select {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

input[readonly] {
  background-color: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

input[readonly]:focus {
  outline: none;
  border-color: #d1d5db;
  box-shadow: none;
}

input:focus,
select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px #4f46e5;
}

.fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.fieldset legend {
  padding: 0 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.fieldset label {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}


.footer {
  background: rgba(0, 0, 0, 0.85);
  color: #d1d5db;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
  font-size: 0.8rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1rem;
}

.stat {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.table-wrapper table a {
  color: #f472b6;
  text-decoration: none;
  font-weight: 600;
}

.table-wrapper table a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
}

.booking-wrapper {
  display: flex;
  justify-content: center;
}

/* HEADER LAYOUT + HERO */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: radial-gradient(
    circle at center,
    #000000 0,
    #000000 28%,
    rgba(236, 72, 153, 0.55) 65%,
    rgba(10, 2, 15, 0.95) 100%
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0;
}

/* Glassig tagline under loggan */
.header-tagline {
  margin: 0;
  margin-top: -0.2rem;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.6px;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 255, 255, 0.2);
}

/* loggan */
.logo {
  display: block;
  max-height: 95px;
  width: auto;
  object-fit: contain;
}

/* mindre logga på väldigt små skärmar */
@media (max-width: 600px) {
  .logo {
    max-height: 72px;
  }
}

/* flaggorna – rad under */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  justify-content: center;
}

.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #f9fafb;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.lang-switch a:hover {
  border-color: rgba(236, 72, 153, 0.8);
  background: rgba(236, 72, 153, 0.18);
  color: #ffe7f7;
}

.flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.flag:hover {
  transform: scale(1.15);
}

/* Kort-layout */

.card {
  max-width: 800px;
  margin: 20px auto 60px;
  padding: 30px;
  background: radial-gradient(
    circle at top left,
    rgba(0, 0, 0, 0.92),
    rgba(15, 23, 42, 0.95)
  );
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
  color: #f9fafb;
}

/* rubriker inne i kortet */
.card h2 {
  margin-top: 0;
  color: #ffffff;
}

/* Hindra att språk driver ut bredden */
.card,
.card-booking,
.card-narrow {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

/* primärknappen – svart/magenta-stil */
.btn-primary,
.btn {
  display: inline-block;
  border-radius: 999px;
  border: none;
  padding: 10px 22px;
  background: linear-gradient(135deg, #d11c8b, #f472b6);
  color: #05010a;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover,
.btn:hover {
  filter: brightness(1.08);
}

/* radio-knappar och checkboxar i samma magenta-ton */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #d11c8b;
}

/* Få checkbox + text på samma rad */
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Admin: fullbredd ===== */

.admin-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Admin-tabellen får bättre placering när containern är bred */
.admin-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 6px 8px;
  white-space: nowrap;
}

.admin-table th {
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

/* Tidskolumner – håll dem på en rad på desktop */
.admin-table .time-cell {
  white-space: nowrap;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1),
.admin-table th:nth-child(2),
.admin-table td:nth-child(2),
.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
  width: 1%;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4),
.admin-table th:nth-child(5),
.admin-table td:nth-child(5),
.admin-table th:nth-child(7),
.admin-table td:nth-child(7) {
  min-width: 160px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Visa färre kolumner i admin-tabeller på mobil
   (gäller bara tabeller som INTE har kort-layout) */
@media (max-width: 900px) {
  .admin-table:not(.admin-table--cards):not(.admin-table--stats) th:nth-child(1),
  .admin-table:not(.admin-table--cards):not(.admin-table--stats) td:nth-child(1),

  .admin-table:not(.admin-table--cards):not(.admin-table--stats) th:nth-child(3),
  .admin-table:not(.admin-table--cards):not(.admin-table--stats) td:nth-child(3),

  .admin-table:not(.admin-table--cards):not(.admin-table--stats) th:nth-child(4),
  .admin-table:not(.admin-table--cards):not(.admin-table--stats) td:nth-child(4),

  .admin-table:not(.admin-table--cards):not(.admin-table--stats) th:nth-child(10),
  .admin-table:not(.admin-table--cards):not(.admin-table--stats) td:nth-child(10) {
    display: none;
  }
}

@media (max-width: 768px) {
  .admin-table--cards {
    border: 0;
  }

  .admin-table--cards thead {
    display: none;
  }

  .admin-table--cards,
  .admin-table--cards tbody,
  .admin-table--cards tr,
  .admin-table--cards td {
    display: block;
    width: 100%;
  }

  /* Varje bokning blir ett eget "kort" */
  .admin-table--cards tr {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.98);
  }

  .admin-table--cards td {
    border: 0;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 32%;
    font-size: 0.9rem;
    color: #111827;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .admin-table--cards td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    padding-right: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: #9ca3af;
    opacity: 0.9;
  }

  /* Tider får gärna radbrytas på mobil */
  .admin-table--cards .time-cell {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* På admin-sidor: låt kortet bli lika brett som containern */
.admin-container .card {
  max-width: 100%;
}

/* Mindre diagram-behållare för t.ex. tårtdiagrammet */
.chart-wrapper--small {
  max-width: 420px;
  margin: 0 auto;
}

/* Main layout */

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem 3rem;
}

/* Lite tajtare på väldigt små skärmar */
@media (max-width: 600px) {
  main {
    padding: 3rem 0.75rem 2rem;
  }
}

/* Datumfält med ikon */

.date-field-wrapper {
  position: relative;
}

.date-field-wrapper input {
  padding-right: 36px;
}

.calendar-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  opacity: 0.7;
}

/* Tidsval */

.time-message {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.time-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}

.time-slot {
 padding: 0.45rem 0.3rem;
  text-align: center;
  border-radius: 8px;

  background: #ec4899;
  border: 1px solid #ec4899;
  color: #ffffff; 

  cursor: pointer;
  font-weight: 500;
  text-shadow: none;
  box-shadow: none;
  transition: 0.15s ease;
}

.time-slot:hover {
  background: #db2777;
  border-color: #db2777;
  color: #ffffff;
}

.time-slot.selected {
  background: rgba(255, 255, 255, 0.07);
  border-color: #ec4899;
  color: #ec4899;
}

.time-slot.disabled {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.time-slot-helgdag {
  border-style: dashed;
}

.price-display {
  margin-top: 0.35rem;
  padding: 0.35rem 0.75rem;
  display: inline-block;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Globala premium-knappar */

button:not(.time-slot) {
  padding: 0.75rem 1.25rem;
  background: #e91e63;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 47, 120, 0.35);
}

button:not(.time-slot):hover {
  background-color: #ff3f85;
  box-shadow: 0 6px 20px rgba(255, 47, 120, 0.45);
  transform: translateY(-1px);
}

button:not(.time-slot):active {
  background-color: #e91e63;
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(255, 47, 120, 0.25);
}

button:not(.time-slot) {
  color: #fff !important;
}

button:not(.time-slot) {
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Form-layout på bredare skärmar */

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid > button {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

/* Titel på bokningssidan */

.page-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: white;
  letter-spacing: 0.5px;
}

/* Mindre skärmar: gör den också stor men anpassad */
@media (max-width: 600px) {
  .page-title {
    font-size: 1.75rem;
  }
}

/* Globala länkar – rosa i stället för blå */

a {
  color: #ff4f8f;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #ff2f78;
  text-decoration: underline;
}

button,
input[type="submit"],
input[type="button"] {
  color: #ffffff !important;
}

.main-inner {
  max-width: 900px;         /* bredd på mitt-innehållet (justera om du vill) */
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

/* Wrapper: placerar flash-meddelandet där kortet är */
.flash-wrapper {
  max-width: 520px;        /* samma bredd som bokningskortet */
  margin: 20px auto 0;     /* centrera över huvudkortet */
  padding: 0 16px;
  text-align: center;
}

/* Grundstil för alla flash-meddelanden */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

/* Error — används för 24h-regeln, ogiltiga fält m.m. */
.flash-error {
  background: linear-gradient(135deg, #ef4444, #db2777);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,0.8);
}

/* Warning — om du någon gång använder det (t.ex. "pending payment") */
.flash-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,0.6);
}

@media (max-width: 768px) {
  .flash-wrapper {
    padding: 0 12px;
  }
}




/* ===== ADMIN KALENDER ===== */

.admin-calendar-shell {
  width: 100%;
  overflow-x: hidden;
}

.admin-calendar {
  width: 100%;
  min-width: 0;
}

.admin-calendar-header,
.admin-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.admin-calendar-day {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: white;
}

.admin-calendar-day--busy {
  background: rgba(34, 197, 94, 0.25);
}

.admin-calendar-day--today {
  outline: 2px solid #60a5fa;
}

.admin-calendar-day--selected {
  outline: 2px solid #fbbf24;
  background: rgba(251, 191, 36, 0.24);
}

.admin-calendar-day--other {
  opacity: 0.4;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
}

.admin-nav a.active {
  font-weight: 600;
  opacity: 1;
  border-bottom: 2px solid #f472b6;
  padding-bottom: 2px;
}

/* Gamla badge-varianten (används ihop med dynamiska klasser som badge-status-confirmed) */

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

/* STATUS */
.badge-status-confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.badge-status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.badge-status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

/* BETALNING */
.badge-payment-paid {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.badge-payment-unpaid {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.badge-payment-method {
  background: rgba(55, 65, 81, 0.12);
  color: #111827;
}

/* Små chips / badges för admin-tabeller */

.badge-id,
.badge-status,
.badge-payment,
.badge-payment-method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* ID-chip – neutral grå */
.badge-id {
  background: rgba(148, 163, 184, 0.2);
  color: #111827;
}

/* Status – grön ton (bekräftad / aktiv) */
.badge-status {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

/* Betalstatus – blå ton */
.badge-payment {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

/* Betalmetod – diskret grå */
.badge-payment-method {
  background: rgba(31, 41, 55, 0.12);
  color: #111827;
}

/* Styling för statistik-tabellen */
.admin-table--stats td:first-child {
  padding-left: 12px;
  font-weight: 500;
}

.admin-table--stats td:last-child {
  padding-right: 12px;
  text-align: right;
  font-weight: 600;
  color: #f9a8d4;
}

.admin-table--stats tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-table--stats tr:last-child {
  border-bottom: none;
}

.admin-table--stats thead {
  display: none !important;
  border: 0 !important;
}

.admin-table--stats {
  border-collapse: collapse;
}

.admin-table--stats tr:first-child td {
  border-top: none !important;
}

.admin-table--stats {
  background: rgba(5, 5, 20, 0.85);
  padding: 12px 16px;
  border-radius: 14px;
  width: 100%;
}

.admin-table--stats td {
  color: #fff;
  padding: 8px 0;
}

/* 24h-varning i bokningsformuläret */

.booking-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.65);
  color: #fee2e2;
  font-size: 0.9rem;
  line-height: 1.5;
}

.booking-alert strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .booking-alert {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
}

.booking-warning {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.9); /* orange liknande din nuvarande */
  color: white;
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.phone-input {
  letter-spacing: 0.03em;
}

.phone-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.8;
}


.time-grid-empty {
  /* Rosa stil som matchar dina flash-error */
  background: linear-gradient(135deg, #ef44a4, #db2777);
  color: white;

  font-size: 1rem;        /* Lite större text */
  font-weight: 600;       /* Tydligare */
  border-radius: 12px;    /* Mjuk box */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-top: 12px;
  padding: 12px 16px;
  text-align: center;
}

.day-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  margin-left: 0.3rem;
}

.day-dot--full {
  background: #ef4444;   /* röd */
}

.day-dot--available {
  background: #22c55e;   /* grön */
}

/* ------- Kundkalender vid bokning ------- */

.booking-calendar-wrapper {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.cal-month-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cal-nav-btn {
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.cal-nav-btn:hover {
  background: rgba(55, 65, 81, 0.9);
}

.booking-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 0.4rem;
  margin-right: 0.2rem;
}

.legend-available {
  background: rgba(34, 197, 94, 0.65);
}

.legend-full {
  background: rgba(239, 68, 68, 0.8);
}

.legend-blocked {
  background: rgba(75, 85, 99, 0.9);
}

.legend-text {
  margin-right: 0.6rem;
}

/* Rutnätet */
.booking-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.cal-cell {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-size: 0.8rem;
}

/* Veckodagsrad */
.cal-row-weekdays .cal-cell-weekday {
  font-weight: 600;
  opacity: 0.85;
}

/* Vanliga dagar */
.cal-cell-day {
  cursor: default;
}

/* Tillgänglig dag – GRÖN (klickbar) */
.cal-cell-available {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ecfdf5;
  cursor: pointer;
}

/* Fullbokad dag – RÖD (inte klickbar) */
.cal-cell-full {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fee2e2;
}

/* Blockerad dag (för nära / för långt fram / utanför fönster) – GRÅ */
.cal-cell-blocked {
  background: rgba(31, 41, 55, 0.9);
  color: #9ca3af;
}

/* Tomma celler före/efter månad */
.cal-cell-empty {
  opacity: 0;
}

/* Markerad vald dag */
.cal-cell-selected {
  box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.9);
}

/* Lite tightare på små skärmar */
@media (max-width: 480px) {
  .booking-calendar-wrapper {
    padding: 0.5rem 0.6rem;
  }
  .cal-cell {
    min-height: 22px;
    font-size: 0.7rem;
  }
}

.admin-filters {
  margin-bottom: 1rem;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.filter-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.filter-field input,
.filter-field select {
  min-width: 150px;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
}


/* Footer inuti bokningskortet (mobil-säker) */
.booking-footer {
  grid-column: 1 / -1;        /* om den ligger i form-grid */
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: center;
  line-height: 1.2rem;
}

.booking-footer a {
  color: #f472b6;
  text-decoration: none;
}

.booking-footer a:hover {
  text-decoration: underline;
}


/* Flash-meddelanden: gör dem till overlay så de inte blinkar i layouten */
.flash-wrapper{
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(520px, 92vw);
  display: grid;
  gap: 8px;

  /* Fade-in istället för "flash" */
  opacity: 0;
  animation: flashFadeIn 120ms ease-out forwards;
}

@keyframes flashFadeIn{
  to { opacity: 1; }
}

/* Valfritt: auto-fade-out efter 2.5s */
.flash-wrapper{
  animation: flashFadeIn 120ms ease-out forwards, flashFadeOut 250ms ease-in forwards 2.5s;
}

@keyframes flashFadeOut{
  to { opacity: 0; }
}

/* Se till att flash-rutor är tydliga (om du redan har styling kan du skippa detta) */
.flash{
  padding: 10px 12px;
  border-radius: 10px;
}

/* Selected day should be visually obvious and override available/full/blocked */
.cal-cell-day.cal-cell-selected {
  outline: 3px solid currentColor;
  outline-offset: -3px;
  background: rgba(0, 0, 0, 0.10) !important;
}

/* EXPERIENCE / SERVICE select (rosa istället för grå) */
select[name="service_id"] {
  background: #ec4899;
  border: 1px solid #ec4899;
  color: #ffffff;
  font-weight: 600;
}

select[name="service_id"]:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.35);
}

/* Dropdown-listan (så texten syns även när listan öppnas) */
select[name="service_id"] option {
  background: #111827;
  color: #ffffff;
}

/* =========================
   HEADER (ren): tunn + logo centrerad + flaggor nära (responsive)
   ========================= */

.site-header{
  padding: 6px 16px;
}

/* Desktop + tablet */
.header-inner{
  position: relative !important;
  min-height: 78px !important;     /* <-- detta är fixen */
  padding: 10px 12px !important;   /* <-- ger lite luft */
  display: block !important;
}


.logo{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-height: 64px !important;
}

.lang-switch{
  position: absolute !important;
  right: 140px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  gap: .20rem !important;
}

/* Tagline bort helt */
.header-tagline{
  display: none !important;
}

/* Mobil: samma rad, bara lite mindre logo */
@media (max-width: 700px){
  .header-inner{ min-height: 70px !important; }
  .logo{ max-height: 56px !important; }
  .lang-switch{ right: 8px !important; gap: .15rem !important; }
}


/* ============================
   Experience dropdown (service)
   Fix: normal font + less truncation
   ============================ */

/* Targeta både id och name (vanligast i ditt projekt) */
select#service_id,
select[name="service_id"] {
  font-weight: 400 !important;     /* normal (inte fet) */
  font-size: 0.95rem !important;   /* lite mindre så mer text får plats */
  line-height: 1.2;
  width: 100% !important;
  max-width: 100% !important;

  /* Se till att texten inte hamnar under dropdown-pilen */
  padding-right: 2.75rem !important;

  /* Om du har ellipsis/overflow från annan CSS */
  text-overflow: clip !important;
  white-space: nowrap;
}

/* Gör options också normalvikt (vissa browsers tar annars bold från select) */
select#service_id option,
select[name="service_id"] option {
  font-weight: 400 !important;
}

/* Om selecten ligger i en wrapper som sätter en för liten bredd */
.booking-form select#service_id,
.booking-form select[name="service_id"] {
  max-width: none !important;
}

select#service_id,
select[name="service_id"] {
  font-weight: 400 !important;
  padding-right: 2.75rem !important; /* så text inte hamnar under pilen */
}
select#service_id option,
select[name="service_id"] option {
  font-weight: 400 !important;
}

.logout-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  color: inherit;
}


/* ===== Admin /bookings: mörk tabellheader + scroll ===== */
.admin-container .admin-table--cards thead th {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Gör så tabellen kan scrollas horisontellt om den blir för bred */
.admin-container .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
