/* Floating label for textarea fields */
.floating-label-textarea {
  position: relative;
  background: rgba(33,203,243,0.05);
  color: #fff;
}
.floating-label-textarea-label {
  position: absolute;
  top: 1em;
  left: 1em;
  font-size: 1em;
  color: #6cf;
  font-weight: 600;
  opacity: 0.8;
  pointer-events: none;
  background: transparent;
  transition: all 0.2s;
  z-index: 2;
}
.floating-label-textarea:focus + .floating-label-textarea-label,
.floating-label-textarea:not(:placeholder-shown) + .floating-label-textarea-label,
.floating-label-textarea.has-value + .floating-label-textarea-label {
  top: 0.2em;
  left: 1em;
  font-size: 0.85em;
  color: #1e88e5;
  opacity: 1;
  background: rgba(33,203,243,0.05);
  padding: 0 4px;
}
.payment-radio-label, .payment-radio, .payment-radio-text {
  pointer-events: auto !important;
  opacity: 1 !important;
}
/* Payment method radio button group styles */
.payment-method-group {
  text-align: center;
}
.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  align-items: center;
}
.payment-radio-label {
  display: flex;
  align-items: center;
  gap: 1em;
  cursor: pointer;
  margin: 0;
  padding: 0.8em;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  transition: background 0.2s;
  position: static !important;
}
.payment-radio-label:hover, .payment-radio-label:active {
  background: rgba(33,150,243,0.12);
}
.payment-radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  accent-color: #1e88e5;
  position: static !important;
}
.payment-radio-text {
  font-size: 1.05em;
  user-select: none;
  color: #222;
  position: static !important;
}
.search-box .form-group.floating-label {
  width: 52% !important;
  margin: 0.2em auto !important;
  position: relative !important;
}
.search-box .form-group.floating-label input {
  width: 100% !important;
}
.search-box .form-group.floating-label label {
  position: absolute !important;
  top: -8px !important;
  left: 8px !important;
  font-size: 12px !important;
  color: #1976d2 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  background: var(--input-background, #2d3748) !important;
  padding: 0 6px !important;
  width: auto !important;
  transform: none !important;
  z-index: 10 !important;
}
.form-group.floating-label label {
  position: absolute !important;
  top: 15px !important;
  left: 12px !important;
  font-size: 16px !important;
  color: #82aaff !important;
  opacity: 0.7 !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  padding: 0 4px !important;
  z-index: 2 !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
  width: auto !important;
  transform: none !important;
}
.form-group.floating-label input:focus + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label,
.form-group.floating-label input.has-value + label,
.form-group.floating-label textarea.has-value + label {
  top: -8px !important;
  left: 8px !important;
  font-size: 12px !important;
  color: #1976d2 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  background: var(--input-background, #2d3748) !important;
  padding: 0 6px !important;
  width: auto !important;
  transform: none !important;
}
/* Global floating label styles for all forms */
.form-group.floating-label {
  position: relative;
  width: 52%;
  margin: 0.2em auto;
}
.form-group.floating-label input,
.form-group.floating-label textarea {
  width: 100%;
  padding: 15px 12px 5px 12px;
  font-size: 16px;
  border: 2px solid var(--border-color, #ccc);
  border-radius: 8px;
  background: transparent;
  color: var(--text-color, #333);
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
  display: block;
}
.form-group.floating-label label {
  position: absolute;
  top: 15px;
  left: 12px;
  font-size: 16px;
  color: #82aaff;
  opacity: 0.7;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 4px;
  z-index: 2;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  width: auto;
  transform: none;
}
.form-group.floating-label input:focus + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label,
.form-group.floating-label input.has-value + label,
.form-group.floating-label textarea.has-value + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
  color: #1976d2;
  opacity: 1;
  font-weight: 600;
  background: var(--input-background, #2d3748);
  padding: 0 6px;
  width: auto;
  transform: none;
}
/* Global box-sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Ensure .form-group and .search-box fill the card */
.app-container .form-group,
.app-container .search-box {
  width: 100%;
  max-width: none;
}

/* Ensure floating label style is not overridden by .search-box .form-group label */
.search-box .form-group.floating-label label {
  position: absolute !important;
  top: 15px !important;
  left: 12px !important;
  font-size: 16px !important;
  color: #82aaff !important;
  opacity: 0.7 !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  padding: 0 4px !important;
  z-index: 2 !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
  width: auto !important;
  transform: none !important;
}
.search-box .form-group.floating-label input:focus + label,
.search-box .form-group.floating-label input:not(:placeholder-shown) + label,
.search-box .form-group.floating-label input.has-value + label {
  top: -8px !important;
  left: 8px !important;
  font-size: 12px !important;
  color: #1976d2 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  background: var(--input-background, #2d3748) !important;
  padding: 0 6px !important;
  width: auto !important;
  transform: none !important;
}

/* Force input to fill parent */
.app-container input[type="text"],
.app-container input[type="email"],
.app-container input[type="password"],
.app-container input[type="tel"],
.app-container input[type="url"],
.app-container select,
.app-container textarea {
  width: 100%;
  max-width: none;
  display: block;
  margin: 0;
}
.app-container {
  max-width: 700px !important;
  margin: 3.5em auto 0 auto !important;
  padding: 2.5em 2.2em 2.2em 2.2em !important;
  width: 100% !important;
  box-sizing: border-box;
}
/* --- Checkin form: floating labels and spacing --- */
.search-box .form-group {
  position: relative;
  margin-bottom: 1.1em;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.search-box input[type="text"],
.search-box input[type="email"],
.search-box input[type="password"],
.search-box input[type="number"] {
  width: 52% !important;
  margin: 0.2em auto 0.2em auto;
  display: block;
  padding: 0.9em 1.1em;
  background: #1e283c !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}
.search-box .form-group label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  transform: translate(-50%, -50%);
  font-size: 1em;
  color: var(--text);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
  background: #1e283c;
  padding: 0 0.2em;
  z-index: 1;
}
.search-box input[type="text"]:focus + label,
.search-box input[type="email"]:focus + label,
.search-box input[type="password"]:focus + label,
.search-box input[type="number"]:focus + label,
.search-box input[type="text"]:not(:placeholder-shown) + label,
.search-box input[type="email"]:not(:placeholder-shown) + label,
.search-box input[type="password"]:not(:placeholder-shown) + label,
.search-box input[type="number"]:not(:placeholder-shown) + label {
  top: -0.7em;
  left: 50%;
  width: 52%;
  font-size: 0.82em;
  color: var(--primary);
  background: var(--bg);
  font-weight: 600;
  transform: translate(-50%, 0);
}

.form-card.admin.login .form-group {
  position: relative;
  width: 90%;
  max-width: 350px;
    display: block;
    justify-content: flex-start;
  }
.form-card.admin.login input[type="text"],
.form-card.admin.login input[type="password"] {
  width: 100%;
  margin: 0.15em 0 0.15em 0;
  display: block;
}
/* Floating label for login form, matching global style */
.form-card.admin.login .form-group label {
  position: absolute;
  top: 50%;
  left: 0.8em;
  transform: translateY(-50%);
  font-size: 1em;
  color: var(--text);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
  background: #1e283c;
  padding: 0 0.2em;
  z-index: 1;
}
.form-card.admin.login input[type="text"]:focus + label,
.form-card.admin.login input[type="password"]:focus + label,
.form-card.admin.login input[type="text"]:not(:placeholder-shown) + label,
.form-card.admin.login input[type="password"]:not(:placeholder-shown) + label {
  top: -0.6em;
  left: 0.8em;
  font-size: 0.85em;
  color: var(--primary);
  background: var(--bg);
  font-weight: 600;
  transform: translateY(0);
}
.form-card.admin.login {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-card.admin.login h1 {
  text-align: center;
  width: 100%;
}
.form-card.admin.login form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.form-card.admin.login .form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-card.admin.login input[type="text"],
.form-card.admin.login input[type="password"] {
  width: 90%;
  max-width: 350px;
  margin: 0.5em 0;
}
.form-card.admin.login button[type="submit"] {
  margin: 1.5em 0 0 0;
  width: 70%;
  max-width: 250px;
}
.search-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.login-page {
  min-height: 100vh;
/* Remove width restrictions so card fills .app-container */
  width: 100%;
  margin: 0 auto 1.5em auto;
  padding: 2em 2em 1.5em 2em;
  background: var(--card-bg);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(25, 118, 210, 0.15);
  border: 1.5px solid var(--primary);
  box-sizing: border-box;
}

/* Ensure form inside .app-container uses full width */
.app-container form {
  width: 100%;
}

/* Fix input vertical alignment */
.app-container input[type="text"] {
  padding-top: 1.1em;
  padding-bottom: 1.1em;
  line-height: 1.2;
  height: auto;
    box-sizing: border-box;
    height: 3em;
    line-height: 3em;
    padding: 0 1.2em;
}
  float: none !important;
}
/* Admin toast notification */
.admin-toast {
  position: fixed;
  top: 2.5em;
  left: 50%;
  transform: translateX(-50%);
  background: #2ecc40;
  color: #fff;
  padding: 1.1em 2.2em;
  border-radius: 1em;
  box-shadow: 0 4px 24px #0005;
  font-size: 1.15em;
  font-weight: 600;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.7s;
  max-width: 90vw;
  text-align: center;
}
.admin-toast.hide {
  opacity: 0;
  pointer-events: none;
}
.form-card.admin table {
  margin-left: auto !important;
  margin-right: auto !important;
  display: table;
}
/* Center all tables inside .form-card.admin */
.form-card.admin table {
  margin-left: auto;
  margin-right: auto;
  display: table;
}
/* Make all forms inside .form-card.admin 100% wide */
.form-card.admin form {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
/* Make all .form-group inside .form-card.admin 80% wide and centered */
/* Admin Form Centering & Consistency v3.3.3 */
.form-card.admin .form-group {
    width: 100%;
    max-width: 800px;
    min-width: 0;
    margin: 1.8em auto;
    position: relative;
    display: block; /* Using block for better absolute positioning of labels */
}

.form-card.admin .form-group input:not([type="checkbox"]):not([type="radio"]),
.form-card.admin .form-group textarea,
.form-card.admin .form-group select {
    width: 100%; /* Fill the container for consistent label alignment */
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 1em 1.2em;
}

.form-card.admin .form-group .theme-switch {
    display: block !important;
    margin: 0 auto !important;
    position: static !important;
}

.form-card.admin h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 1.5em;
}

.form-card.admin .save-btn {
    display: block;
    margin: 2em auto;
    padding: 0.8em 2em;
    width: fit-content;
    min-width: 200px;
}

/* Allow tables to break out of .form-card.admin for wide tab tables */
.form-card.admin {
  overflow: visible !important;
}

.tab-content .form-card.admin {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
/* Tables inside .form-card.admin: 80% of card width, centered */
.form-card.admin .tab-content > table,
.form-card.admin .tab-content .form-group > table {
  width: 80%;
  max-width: 100%;
  min-width: 320px;
  margin: 2em auto;
  display: table;
  position: relative;
  box-sizing: border-box;
}
/* Direct child tables of tab-content (main tab tables): wide and responsive */
.tab-content > table {
  width: 80%;
  min-width: 280px;
  max-width: 1200px;
  margin: 0 auto 1.5em auto;
  display: table;
}
/* All tables in admin tab-content: wide and responsive */
.tab-content table {
  width: 80%;
  min-width: 280px;
  max-width: 1200px;
  margin: 0 auto 1.5em auto;
  display: table;
}
/* EasyMDE Toolbar Icon Visibility - Ultimate Fix */
html[data-theme="dark"] .editor-toolbar button,
html[data-theme="dark"] .editor-toolbar button:before,
html[data-theme="dark"] .editor-toolbar button svg,
html[data-theme="dark"] .editor-toolbar button .fa {
  color: #ffe082 !important;
  fill: #ffe082 !important;
  opacity: 1 !important;
  filter: brightness(2) !important;
}
html[data-theme="dark"] .editor-toolbar button:hover,
html[data-theme="dark"] .editor-toolbar button:active {
  color: #fff !important;
  fill: #fff !important;
  filter: brightness(2.5) !important;
}
html[data-theme="dark"] .editor-toolbar button[style*="background-image"] {
  filter: brightness(2.5) !important;
  opacity: 1 !important;
}
/* End EasyMDE Toolbar Icon Visibility - Ultimate Fix */
/* EasyMDE Toolbar Icon/Text Visibility Fix */
html[data-theme="dark"] .editor-toolbar button svg,
html[data-theme="dark"] .editor-toolbar button .fa {
  color: #ffe082 !important;
  fill: #ffe082 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .editor-toolbar button:hover svg,
html[data-theme="dark"] .editor-toolbar button:hover .fa {
  color: #fff !important;
  fill: #fff !important;
}
/* End EasyMDE Toolbar Icon/Text Visibility Fix */
/* EasyMDE Toolbar Buttons - Grey in Dark Theme */
html[data-theme="dark"] .editor-toolbar button,
html[data-theme="dark"] .editor-toolbar button.active,
html[data-theme="dark"] .editor-toolbar button:focus {
  background: #353a40 !important;
  color: #bbb !important;
  border: none !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .editor-toolbar button:hover {
  background: #444 !important;
  color: #ffe082 !important;
}
/* End EasyMDE Toolbar Buttons - Grey in Dark Theme */
/* EasyMDE Dark Theme Fix */
html[data-theme="dark"] .EasyMDEContainer,
html[data-theme="dark"] .CodeMirror,
html[data-theme="dark"] .editor-toolbar {
  background: #212737 !important;
  color: #ffe082 !important;
}
html[data-theme="dark"] .CodeMirror-scroll {
  background: #212737 !important;
}
html[data-theme="dark"] .CodeMirror-gutters {
  background: #212737 !important;
}
html[data-theme="dark"] .editor-toolbar button {
  color: #ffe082 !important;
}
html[data-theme="dark"] .editor-toolbar {
  border-bottom: 1.5px solid #1976d2 !important;
}
html[data-theme="dark"] .CodeMirror-cursor {
  border-left: 2px solid #ffe082 !important;
}
html[data-theme="dark"] .CodeMirror-selected {
  background: #2a3550 !important;
}
/* End EasyMDE Dark Theme Fix */

/* Markdown Editor Block Styles (moved from settings.php) */
.mde-field-block {
  width: 100%;
  margin-bottom: 2em;
  background: #212737;
  border-radius: 0.7em;
  padding: 1em 1.2em 1em 1.2em;
  box-shadow: 0 2px 12px #0003;
  border: 1.5px solid #1976d2;
  box-sizing: border-box;
}
.mde-label {
  font-size: 1.1em;
  color: #ffe082;
  font-weight: 500;
  margin-bottom: 0.5em;
  display: block;
}
/* End Markdown Editor Block Styles */
/* Hide placeholder on focus or when input has content */
/* Hide phone placeholder only when typing (not just on focus) */
input[type="tel"]:not(:placeholder-shown)::placeholder {
  color: transparent;
}
/* Booking stepper: lines between steps, not through text */
.booking-stages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0; /* zero gap */
  margin-bottom: 1em;
  position: relative;
}
.booking-stage {
  position: relative;
  padding: 0 0.04em 0 0.03em; /* minimum padding */
  background: transparent;
  z-index: 1;
  font-size: 1.13em;
  font-weight: 600;
}

/* New stepper line style for flexbox layout */
.booking-stage-line {
  width: 0.18em; /* minimum line */
  height: 2px;
  background: #197d23 !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.002em; /* almost zero margin */
}
.booking-stage.active {
  color: #197d23;
  background: transparent;
  z-index: 2;
}
.booking-stage.completed {
  color: #1976d2;
}
.booking-stage:not(.active) {
  background: transparent;
}
/* Center the wizard progressbar text */
.wizard-progressbar {
  text-align: center;
  width: 100%;
}

/* Center the 'Till startsidan' link */
.booking-wizard a[href*="index.php"] {
  display: block;
  text-align: center;
  margin: 2em auto 0 auto;
  width: 100%;
}
/* Center all wizard step content horizontally */
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
@media (max-width: 600px) {
  .settings-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
    padding: 0.5em;
  }
  .tab-btn {
    width: 100%;
    font-size: 1em;
    padding: 1em 0.5em;
    box-sizing: border-box;
    text-align: left;
  }
}
/* Inline edit wrapper and controls */
.admin-table-inline-edit-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.admin-table-inline-input-active {
  border: 2px solid #1976d2 !important;
  background: #fffbe6 !important;
  color: #222 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px #1976d233;
  border-radius: 5px;
  padding: 0.2em 0.5em;
}
.admin-table-inline-save-btn, .admin-table-inline-cancel-btn {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  padding: 0.1em 0.5em;
  margin-left: 0.1em;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-table-inline-save-btn:hover {
  background: #2ecc40;
}
.admin-table-inline-cancel-btn:hover {
  background: #c0392b;
}
.admin-table-inline-help {
  color: #888;
  font-size: 0.95em;
  margin-left: 0.5em;
  user-select: none;
}
/* Hide the checkbox for Aktiv toggle, but keep it accessible for JS and screen readers */
.aktiv-toggle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
.aktiv-switch {
  border: 2px solid red !important;
  pointer-events: all !important;
}
/* Aktiv switch vertical stacking and centering */
.aktiv-switch-label {
  display: block;
  text-align: center;
  margin-top: 0.7em;
  margin-bottom: 0.2em;
  font-weight: bold;
  font-size: 1.1em;
}
.aktiv-switch {
  display: inline-block;
  margin: 0 auto;
}
/* Fix: Add spacing below step indicator to prevent label overlap */
.wizard-progressbar {
  margin-bottom: 2.2em;
}
/* Admin add booking button - top left, prominent */
.admin-add-booking-btn {
  display: inline-block;
  margin: 0 0 1.2em 0;
  padding: 1em 2.5em;
  font-size: 1.25em;
  font-weight: 700;
  background: linear-gradient(90deg, #21cbf3 0%, #1976d2 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.18);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  margin-top: 0.5em;
}
.admin-add-booking-btn:hover {
  background: linear-gradient(90deg, #1976d2 0%, #21cbf3 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.28);
  transform: translateY(-2px) scale(1.03);
}
/* --- Modal for Add Booking (Admin) --- */
/* Modal overlay: full viewport, perfect centering */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 25, 40, 0.55);
  backdrop-filter: blur(4px);
  transition: background 0.3s;
  overflow: hidden;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  display: flex;
}
.modal-content {
  background: rgba(25, 118, 210, 0.22);
  padding: 2.5em 2em 2em 2em;
  border: 2px solid #1976d2;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(25, 118, 210, 0.25);
  width: auto;
  max-width: 98vw;
  max-height: 90vh;
  overflow-y: auto;
  color: #fff;
  position: relative;
  animation: modalFadeIn 0.3s;
  margin: 2vh 0;
  top: 0;
  left: 0;
  transform: none;
  box-sizing: border-box;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
.close-modal {
  color: #fff;
  position: absolute;
  top: 1.1em;
  right: 1.3em;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1001;
  padding: 0.3em 0.5em;
  border-radius: 4px;
  user-select: none;
  background: transparent;
}
.close-modal:hover {
  color: #fff;
  background: rgba(255, 167, 38, 0.2);
  transform: rotate(90deg);
}
.close-modal:active {
  background: rgba(255, 167, 38, 0.4);
}
.modal-content h2 {
  color: #1976d2;
  margin-bottom: 1.2em;
  text-align: center;
}
.modal .form-group {
  margin-bottom: 1.1em;
  position: relative;
}
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="number"],
.modal input[type="date"],
.modal input[type="tel"],
.modal select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.8em 1em;
  background: #0f1419 !important;
  color: #fff !important;
  border: 2px solid #1976d2;
  border-radius: 8px;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  transition: all 0.3s ease;
}

.modal .form-group label {
  position: absolute;
  top: 0.9em;
  left: 1em;
  font-size: 1em;
  color: #999;
  pointer-events: none;
  transition: all 0.3s ease;
  background: rgba(15, 20, 25, 0.8);
  padding: 0 0.2em;
  font-weight: 600;
}

/* Floating label states for modal */
.modal input:focus + label,
.modal select:focus + label,
.modal textarea:focus + label,
.modal input:not(:placeholder-shown) + label,
.modal textarea:not(:placeholder-shown) + label,
/* Support for select with value */
.modal select.has-value + label,
/* Dates and numbers often have default UI so float them when focused or if they have value */
.modal input[type="date"]:focus + label,
.modal input[type="date"]:not(:placeholder-shown) + label,
.modal input[type="number"]:focus + label,
.modal input[type="number"]:not(:placeholder-shown) + label {
  top: -0.6em !important;
  left: 0.8em !important;
  font-size: 0.85em !important;
  color: #21cbf3 !important;
  background: rgba(15, 20, 25, 0.95) !important;
  padding: 0 0.3em !important;
  z-index: 10;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  background: #0a0e14 !important;
  border-color: #21cbf3 !important;
  box-shadow: 0 0 20px rgba(33, 203, 243, 0.3), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  outline: none;
}

/* Ensure date input placeholders don't overlap labels */
.modal input[type="date"]::before {
  content: attr(placeholder);
  width: 100%;
  color: #666;
}
.modal input[type="date"]:focus::before,
.modal input[type="date"]:not(:placeholder-shown)::before {
  content: "" !important;
  width: 0;
}
  transform: translateY(-8px);
}
.modal button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #1976d2 0%, #21cbf3 100%);
  color: #fff;
  border: none;
  padding: 1em 0;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 1.2em;
  transition: background 0.3s;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.18);
}
.modal button[type="submit"]:hover {
  background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
}
#addBookingFeedback {
  text-align: center;
  font-size: 1em;
  margin-top: 1em;
}
[data-theme="dark"] {
  --bg: #181c22;
  --card-bg: #212737;
  --table-bg: #242b37;
  --text: #f5f5f5;
  --border: #1976d2;
  --table-header: #1976d2;
  --table-header-text: #f5f5f5;
  --input-bg: #242b37;
}

html[data-theme="light"],
body[data-theme="light"] {
  --bg: #3d5a7a;
  --card-bg: #22323e;
  --table-bg: #22323e;
  --text: #e3eaf2;
  --border: #46607a;
  --table-header: #36516B;
  --table-header-text: #e3eaf2;
  --input-bg: #22323e;
  background: #3d5a7a !important;
}

:root {
  --primary: #1976d2;
  --primary-dark: #1565c0;
  --accent: #29404c;
  --danger: #c0392b;
  --success: #2e7d32;
  --warn: #e67e22;
  --bg: #181c22;
  --card-bg: #212737;
  --table-bg: #242b37;
  --text: #f5f5f5;
  --border: #1976d2;
  --table-header: #1976d2;
  --table-header-text: #f5f5f5;
  
  /* Additional semantic variables */
  --text-light: #a0a0a0;
  --input-bg: #242b37;
  --border-color: #1976d2;
  
  /* Component tokens */
  --btn-radius: 0.3em;
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  
  /* Modern Search Box Design Variables */
  --search-bg: #212737;
  --search-primary: #1976d2;
  --search-focus: #21cbf3;
  --deepblue: #003366;
  --blue-light: #4f9cff;
  --pink: #ff69b4;
  --pink-light: #ffb1e6;
  --hot-pink: #ff4081;
  --lavender: #e6e6fa;
  --lavender-dark: #a678f4;
  --aqua: #b3e5fc;
  --aqua-dark: #21cbf3;
  --cotton-candy: #ffe0f7;
  --checkin-card-bg: #a8c686; /* Samma som checked-in knapp */
  --checkin-card-text: #1a1a1a;
}

body {
    background: var(--bg);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
    min-height: 100vh;
}

/* Snygga länkar för dark tema */
a {
    color: #e2e8f0; /* Ljus text för mörkt tema */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.4s ease;
    padding: 0.5em 1em;
    border-radius: 6px;
}

a:hover {
    color: #ffa726; /* Ljus orange hover för mörkt tema */
    background: rgba(45, 55, 72, 0.6);
}

a:active {
    background: rgba(45, 55, 72, 0.8);
}

/* Tooltip för tabellceller - snabb och responsiv */
.tooltip {
    position: relative;
    cursor: help;
}

/* Tooltip för tabellceller - hela cellen är klickbar */
td.tooltip {
    cursor: help;
    transition: background-color 0.15s ease;
}

td.tooltip:hover {
    background: rgba(25, 118, 210, 0.08) !important;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: fixed;
    left: var(--tooltip-left, 50%);
    top: var(--tooltip-top, -80px);
    transform: translateX(0);
    background: rgba(20, 20, 20, 0.75);
    color: white;
    padding: 0.9em 1.4em; /* Större padding */
    border-radius: 8px;
    font-size: 0.95em; /* Större font */
    font-weight: 500;
    white-space: pre-line; /* Tillåt line breaks från \A eller <br> */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    max-width: 450px; /* Lite bredare för mer text */
    word-wrap: break-word;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4; /* Bättre radavstånd */
}

.tooltip::before {
    content: '';
    position: fixed;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
    border: 8px solid transparent;
}

/* Arrow positioning based on tooltip position */
.tooltip[style*="--tooltip-position: top"]::before {
    left: var(--arrow-left, 50%);
    top: calc(var(--tooltip-top, -80px) + 100%);
    border-top-color: rgba(20, 20, 20, 0.95);
    border-bottom: none;
}

.tooltip[style*="--tooltip-position: bottom"]::before {
    left: var(--arrow-left, 50%);
    top: calc(var(--tooltip-top, 80px) - 16px);
    border-bottom-color: rgba(20, 20, 20, 0.95);
    border-top: none;
}

.tooltip[style*="--tooltip-position: left"]::before {
    left: calc(var(--tooltip-left, -400px) + 100%);
    top: calc(var(--tooltip-top, 50%) + var(--arrow-top, 40px));
    border-left-color: rgba(20, 20, 20, 0.95);
    border-right: none;
}

.tooltip[style*="--tooltip-position: right"]::before {
    left: calc(var(--tooltip-left, 400px) - 16px);
    top: calc(var(--tooltip-top, 50%) + var(--arrow-top, 40px));
    border-right-color: rgba(20, 20, 20, 0.95);
    border-left: none;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Tooltip delay för att undvika oavsiktlig visning */
.tooltip::after,
.tooltip::before {
    transition-delay: 0.3s;
}

.tooltip:hover::after,
.tooltip:hover::before {
    transition-delay: 0s;
}

/* === Consistent Main Window Sizing (Om-page style) === */
.om-card,
.form-card.booking-wizard,
.form-card.admin.login,
.guestbook-container,
.app-container {
  max-width: 700px !important;
  margin: 3.5em auto 0 auto !important;
  padding: 2.5em 2.2em 2.2em 2.2em !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Datum och nätter information */
.date-info {
    font-size: 0.75em;
    color: var(--text);
    opacity: 0.7;
    margin-top: 0.2em;
    line-height: 1.2;
}

.date-info .nights {
    font-weight: 600;
    color: var(--primary);
}

.date-info .date-detail {
    font-size: 0.9em;
    opacity: 0.8;
}
.form-card {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    max-width: 100%;
    margin: 3em auto;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(25, 118, 210, 0.25);
    padding: 2.2em 2em 2em 2em;
    transition: background 0.2s, color 0.2s;
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}
/* Admin panel main card - same style as checkin card, grönsvart och glassmorphism */
/* Make admin settings window much wider and responsive */
.form-card.admin {
  background: rgba(198, 40, 40, 0.12); /* Röd transparent bakgrund */
  border: 2.5px solid #c62828;
  color: #fff0f0;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(198,40,40,0.13);
  backdrop-filter: blur(8px);
  padding: 2.2em 2em 2em 2em;
  max-width: 1200px;
  width: 80%;
  min-width: 320px;
  margin: 1.5em auto;
  transition: background 0.2s, color 0.2s;
}

/* Make login card small and override min-width for login only */
.form-card.admin.login {
  max-width: 320px;
  min-width: unset;
  width: 100%;
  margin: 2em auto;
  padding: 2em 1.2em 1.5em 1.2em;
}
}

/* Blå glas-effekt för bokningsfönstret */
.form-card.booking-wizard {
  max-width: 550px !important;
  width: 100%;
  margin: 3em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

body[data-theme="light"] .form-card.booking-wizard,
html[data-theme="light"] .form-card.booking-wizard {
  background: #22323e !important;
  color: #f3f6fa !important;
  box-shadow: 0 8px 32px 0 rgba(25, 118, 210, 0.18) !important;
  border: 2px solid #22323e !important;
}
}

h1, h2 {
    color: var(--primary);
    margin-bottom: 1em;
    text-align: center;
}
form .form-group {
    margin-bottom: 0.8em; /* Much more compact vertical spacing */
    position: relative;
}

/* Add class for inputs with symbols */
.form-group.with-symbol {
    position: relative;
}
.form-group.with-symbol .input-symbol {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block;
    pointer-events: none;
    opacity: 0.6;
}
.form-group.with-symbol input[type="tel"],
.form-group.with-symbol input[type="text"],
.form-group.with-symbol input[type="email"],
.form-group.with-symbol input[type="number"],
.form-group.with-symbol input[type="password"],
.form-group.with-symbol input[type="date"],
.form-group.with-symbol input[type="time"] {
    padding-left: 3rem;
}
input[type="text"], 
input[type="email"], 
input[type="url"], 
input[type="number"], 
input[type="password"], 
input[type="date"], 
input[type="tel"], 
input[type="time"], 
select, 
textarea {
  width: 100%; /* Default to full width for better mobile response */
  max-width: 100%;
  padding: 1.1em 1.2em; /* Increased padding slightly for better label clearance */
  background: #1e283c !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure they behave like block elements */
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Table inputs in Prislista and Rumspriser: always dark background */
table input[type="text"],
table input[type="number"] {
  width: 100% !important;
  /* FINAL OVERRIDE: Ensure floating label style applies in checkin form */
  .search-box .form-group.floating-label label {
    position: absolute !important;
    top: 15px !important;
    left: 12px !important;
    font-size: 16px !important;
    color: #82aaff !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    padding: 0 4px !important;
    z-index: 2 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
    width: auto !important;
    transform: none !important;
  }
  .search-box .form-group.floating-label input:focus + label,
  .search-box .form-group.floating-label input:not(:placeholder-shown) + label,
  .search-box .form-group.floating-label input.has-value + label {
    top: -8px !important;
    left: 8px !important;
    font-size: 12px !important;
    color: #1976d2 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    background: var(--input-background, #2d3748) !important;
    padding: 0 6px !important;
    width: auto !important;
    transform: none !important;
  }
  min-width: 0 !important;
  background: rgba(30, 40, 60, 0.6) !important;
  color: #fff !important;
  border: 1.5px solid #444 !important;
  border-radius: 8px !important;
  font-size: 0.95em !important;
  padding: 0.6em 0.8em !important;
  text-align: left !important;
  box-shadow: none !important;
}

table input[type="number"] {
  width: 80px !important;
  text-align: center !important;
}

.betalning-prislista-table {
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.betalning-prislista-table th {
  background: #1976d2 !important;
  color: #fff !important;
  padding: 1em 0.8em !important;
  font-size: 0.9em !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: none !important;
}

.betalning-prislista-table th:first-child {
  border-top-left-radius: 12px !important;
}

.betalning-prislista-table th:last-child {
  border-top-right-radius: 12px !important;
}

.betalning-prislista-table td {
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 1em 0.8em !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.betalning-prislista-table tr:hover td {
  background: rgba(255, 255, 255, 0.07) !important;
}
  table select {
    width: fit-content;
    min-width: 0;
    background: #1e283c !important;
    color: var(--text) !important;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 0;
    text-align: center;
    text-align-last: center;
  }

  /* Only textarea gets min-height, not regular inputs */
  textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
      font-family: inherit;
      line-height: 1.5;
      min-height: 120px;
      resize: vertical;
      box-sizing: border-box;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    background: #1e283c !important; /* Solid dark background */
/* Hide placeholder when input is focused or has value */
.form-group input:focus::placeholder,
.form-group input:not(:placeholder-shown)::placeholder {
  opacity: 0;
}
    color: var(--text);
    margin-top: 0.2em; /* Reduced top margin for compactness */
    transition: all var(--transition-normal) ease;
    resize: horizontal; /* Allow manual resizing */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

textarea + label {
    top: 1.2em !important;
    transform: none !important;
}

textarea:focus + label,
textarea:not(:placeholder-shown) + label,
textarea[value]:not([value=""]) + label {
    top: -0.6em !important;
    transform: translateY(0) !important;
}
input[type="text"]:hover, input[type="email"]:hover, input[type="number"]:hover, 
input[type="password"]:hover, input[type="date"]:hover, input[type="tel"]:hover, select:hover, textarea:hover {
    background: rgba(36, 43, 55, 0.8); /* Mjukare bakgrund på hover */
    border-color: rgba(25, 118, 210, 0.7);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.2);
}

/* Enhanced focus effects for all inputs */
input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, 
input[type="password"]:focus, input[type="date"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
    background: #22304a; /* Focus background from backup design */
    border-color: #21cbf3;
    box-shadow: 0 0 20px rgba(33, 203, 243, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* Highlight invalid number input */
input[type="number"]:invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.1);
}
/* Base label style - now specific to avoid breaking components like switches */
label:not(.theme-switch):not(.theme-slider):not(.aktiv-switch-label):not(.mde-label):not(.label-static) {
    position: absolute;
    top: 1.1em; /* Fixed top position for better alignment across inputs and textareas */
    left: 1.1em;
    transform: none; /* Removed centerY transform to prevent jitter and misalignment */
    font-size: 1.05em;
    color: var(--text);
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 0.4em;
    z-index: 5;
    width: auto !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%; /* Prevent labels from breaking out of boxes */
}

/* Static labels for uploads/sections */
.label-static {
    position: static !important;
    display: block !important;
    margin-bottom: 0.8em !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-size: 1.05em !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Specific background for labels when they float - Admin & Booking */
.form-card.admin .form-group label:not(.theme-switch):not(.label-static),
.form-card.booking-wizard .form-group label {
    background: transparent;
}

/* Floating label state: move above when active or filled */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:not(:placeholder-shown) + label,
.form-group .label-fixed {
    top: -0.7em !important;
    left: 0.8em !important;
    transform: translateY(0) !important;
    font-size: 0.85em !important;
    opacity: 1 !important;
    color: #21cbf3 !important;
    background: #1e283c !important; /* Ensure it consistent with input bg */
    font-weight: 700 !important;
    z-index: 10 !important;
    padding: 0 0.5em !important;
    max-width: none !important; /* Allow label to expand when floating */
}

/* Label for Markdown (Fixed above) */
.form-group .mde-label {
    position: static !important;
    display: block !important;
    margin-bottom: 0.5em !important;
    font-weight: 700 !important;
    color: #21cbf3 !important;
    font-size: 0.95em !important;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
}
/* Float label above for time inputs */
.form-group.with-symbol input[type="time"] + label,
.form-group input[type="time"] + label {
  top: -0.6em;
  left: 0.8em;
  font-size: 0.95em;
  color: var(--primary);
  background: var(--bg);
  font-weight: 600;
  opacity: 1;
  transform: translateY(0);
  position: absolute;
  padding: 0 0.2em;
}

/* Labels for inputs with symbols need more left spacing */
.form-group.with-symbol label {
    left: 2.8em;
}

/* All select labels are handled by the floating label rule above */

/* Select with symbol - adjust label position */
.form-group.with-symbol select + label {
    left: 2.6em;
}

/* Floating labels for text inputs (including tel) - move up when focused or has content */
input[type="text"]:focus + label,
input[type="email"]:focus + label,
input[type="number"]:focus + label,
input[type="password"]:focus + label,
input[type="date"]:focus + label,
input[type="tel"]:focus + label,
textarea:focus + label,
input[type="text"]:not(:placeholder-shown) + label,
input[type="email"]:not(:placeholder-shown) + label,
input[type="number"]:not(:placeholder-shown) + label,
input[type="password"]:not(:placeholder-shown) + label,
input[type="date"]:not(:placeholder-shown) + label,
input[type="tel"]:not(:placeholder-shown) + label,
textarea:not(:placeholder-shown) + label,
input[type="text"][value]:not([value=""]) + label,
input[type="email"][value]:not([value=""]) + label,
input[type="number"][value]:not([value=""]) + label,
input[type="password"][value]:not([value=""]) + label,
input[type="date"][value]:not([value=""]) + label,
input[type="tel"][value]:not([value=""]) + label {
    top: -0.6em;
    left: 0.8em;
    font-size: 0.85em;
    color: var(--primary);
    background: #1e283c !important; /* Keep consistent with input bg */
    font-weight: 600;
    transform: translateY(0);
    opacity: 1;
}

/* Floating labels for inputs with symbols (including tel) */
.form-group.with-symbol input[type="text"]:focus + label,
.form-group.with-symbol input[type="email"]:focus + label,
.form-group.with-symbol input[type="number"]:focus + label,
.form-group.with-symbol input[type="password"]:focus + label,
.form-group.with-symbol input[type="date"]:focus + label,
.form-group.with-symbol input[type="tel"]:focus + label,
.form-group.with-symbol input[type="text"]:not(:placeholder-shown) + label,
.form-group.with-symbol input[type="email"]:not(:placeholder-shown) + label,
.form-group.with-symbol input[type="number"]:not(:placeholder-shown) + label,
.form-group.with-symbol input[type="password"]:not(:placeholder-shown) + label,
.form-group.with-symbol input[type="date"]:not(:placeholder-shown) + label,
.form-group.with-symbol input[type="tel"]:not(:placeholder-shown) + label,
.form-group.with-symbol input[type="text"][value]:not([value=""]) + label,
.form-group.with-symbol input[type="email"][value]:not([value=""]) + label,
.form-group.with-symbol input[type="number"][value]:not([value=""]) + label,
.form-group.with-symbol input[type="password"][value]:not([value=""]) + label,
.form-group.with-symbol input[type="date"][value]:not([value=""]) + label,
.form-group.with-symbol input[type="tel"][value]:not([value=""]) + label {
    left: 2.6em;
    background: #1e283c;
/* --- Flatpickr dark theme (for .dark-theme class) --- */
.flatpickr-calendar.dark-theme,
html[data-theme="dark"] .flatpickr-calendar {
  background: #3f4458 !important;
  color: #fff !important;
  border: 1.5px solid #2a2f3f !important;
  box-shadow: 0 4px 24px #000a !important;
}

.flatpickr-calendar.dark-theme .flatpickr-months,
.flatpickr-calendar.dark-theme .flatpickr-weekdays,
.flatpickr-calendar.dark-theme .flatpickr-days,
.flatpickr-calendar.dark-theme .flatpickr-day,
.flatpickr-calendar.dark-theme .flatpickr-time,
html[data-theme="dark"] .flatpickr-months,
html[data-theme="dark"] .flatpickr-weekdays,
html[data-theme="dark"] .flatpickr-days,
html[data-theme="dark"] .flatpickr-day,
html[data-theme="dark"] .flatpickr-time {
  background: #3f4458 !important;
  color: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-month,
html[data-theme="dark"] .flatpickr-month {
  background: #3f4458 !important;
  color: #fff !important;
  fill: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-current-month,
html[data-theme="dark"] .flatpickr-current-month {
  background: #3f4458 !important;
  color: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-current-month span.cur-month,
html[data-theme="dark"] .flatpickr-current-month span.cur-month {
  color: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-prev-month,
.flatpickr-calendar.dark-theme .flatpickr-next-month,
html[data-theme="dark"] .flatpickr-prev-month,
html[data-theme="dark"] .flatpickr-next-month {
  color: #fff !important;
  fill: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-weekday,
html[data-theme="dark"] .flatpickr-weekday {
  background: #3f4458 !important;
  color: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-day,
.flatpickr-calendar.dark-theme .flatpickr-day.today,
html[data-theme="dark"] .flatpickr-day,
html[data-theme="dark"] .flatpickr-day.today {
  background: #3f4458 !important;
  color: #fff !important;
  border-radius: 6px !important;
}

.flatpickr-calendar.dark-theme .flatpickr-day.selected,
.flatpickr-calendar.dark-theme .flatpickr-day.startRange,
.flatpickr-calendar.dark-theme .flatpickr-day.endRange,
html[data-theme="dark"] .flatpickr-day.selected,
html[data-theme="dark"] .flatpickr-day.startRange,
html[data-theme="dark"] .flatpickr-day.endRange {
  background: #80CBC4 !important;
  color: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-day:hover,
.flatpickr-calendar.dark-theme .flatpickr-day:focus,
html[data-theme="dark"] .flatpickr-day:hover,
html[data-theme="dark"] .flatpickr-day:focus {
  background: #545d73 !important;
  color: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-time input,
.flatpickr-calendar.dark-theme .flatpickr-time-separator,
html[data-theme="dark"] .flatpickr-time input,
html[data-theme="dark"] .flatpickr-time-separator {
  background: #3f4458 !important;
  color: #fff !important;
}

.flatpickr-calendar.dark-theme .flatpickr-current-month input.cur-year,
html[data-theme="dark"] .flatpickr-current-month input.cur-year {
  background: #3f4458 !important;
  color: #fff !important;
  border: none !important;
}

/* --- Flatpickr light theme (for .light-theme class) --- */
.flatpickr-calendar.light-theme,
html[data-theme="light"] .flatpickr-calendar {
  background: #fff !important;
  color: #393939 !important;
  border: 1.5px solid #e6e6e6 !important;
  box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08) !important;
}

.flatpickr-calendar.light-theme .flatpickr-months,
.flatpickr-calendar.light-theme .flatpickr-weekdays,
.flatpickr-calendar.light-theme .flatpickr-days,
.flatpickr-calendar.light-theme .flatpickr-day,
.flatpickr-calendar.light-theme .flatpickr-time,
html[data-theme="light"] .flatpickr-months,
html[data-theme="light"] .flatpickr-weekdays,
html[data-theme="light"] .flatpickr-days,
html[data-theme="light"] .flatpickr-day,
html[data-theme="light"] .flatpickr-time {
  background: #fff !important;
  color: #393939 !important;
}

.flatpickr-calendar.light-theme .flatpickr-month,
html[data-theme="light"] .flatpickr-month {
  background: transparent !important;
  color: rgba(0,0,0,0.9) !important;
  fill: rgba(0,0,0,0.9) !important;
}

.flatpickr-calendar.light-theme .flatpickr-current-month,
html[data-theme="light"] .flatpickr-current-month {
  background: transparent !important;
  color: #393939 !important;
}

.flatpickr-calendar.light-theme .flatpickr-current-month span.cur-month,
html[data-theme="light"] .flatpickr-current-month span.cur-month {
  color: #393939 !important;
}

.flatpickr-calendar.light-theme .flatpickr-prev-month,
.flatpickr-calendar.light-theme .flatpickr-next-month,
html[data-theme="light"] .flatpickr-prev-month,
html[data-theme="light"] .flatpickr-next-month {
  color: rgba(0,0,0,0.9) !important;
  fill: rgba(0,0,0,0.9) !important;
}

.flatpickr-calendar.light-theme .flatpickr-weekday,
html[data-theme="light"] .flatpickr-weekday {
  background: transparent !important;
  color: rgba(0,0,0,0.54) !important;
}

.flatpickr-calendar.light-theme .flatpickr-day,
.flatpickr-calendar.light-theme .flatpickr-day.today,
html[data-theme="light"] .flatpickr-day,
html[data-theme="light"] .flatpickr-day.today {
  background: none !important;
  color: #393939 !important;
  border-radius: 150px !important;
  border: 1px solid transparent !important;
}

.flatpickr-calendar.light-theme .flatpickr-day.selected,
.flatpickr-calendar.light-theme .flatpickr-day.startRange,
.flatpickr-calendar.light-theme .flatpickr-day.endRange,
html[data-theme="light"] .flatpickr-day.selected,
html[data-theme="light"] .flatpickr-day.startRange,
html[data-theme="light"] .flatpickr-day.endRange {
  background: #569ff7 !important;
  color: #fff !important;
  border-color: #569ff7 !important;
}

.flatpickr-calendar.light-theme .flatpickr-day:hover,
.flatpickr-calendar.light-theme .flatpickr-day:focus,
.flatpickr-calendar.light-theme .flatpickr-day.inRange,
html[data-theme="light"] .flatpickr-day:hover,
html[data-theme="light"] .flatpickr-day:focus,
html[data-theme="light"] .flatpickr-day.inRange {
  background: #e6e6e6 !important;
  color: #393939 !important;
  border-color: #e6e6e6 !important;
}

.flatpickr-calendar.light-theme .flatpickr-time input,
.flatpickr-calendar.light-theme .flatpickr-time-separator,
html[data-theme="light"] .flatpickr-time input,
html[data-theme="light"] .flatpickr-time-separator {
  background: transparent !important;
  color: #393939 !important;
}

.flatpickr-calendar.light-theme .flatpickr-current-month input.cur-year,
html[data-theme="light"] .flatpickr-current-month input.cur-year {
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
}
}

/* Select labels should always remain visible and change color on focus */
select:focus + label {
    opacity: 1;
    color: var(--primary);
}
button, .theme-toggle {
    background: linear-gradient(135deg, var(--primary) 0%, #21cbf3 100%);
    color: white;
    border: none;
    padding: 0.9em 3em;
    border-radius: 8px;
    font-size: 1.05em;
    cursor: pointer;
    margin-top: 1em;
    transition: all 0.4s ease;
    font-weight: 600;
}
button:hover, .theme-toggle:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

/* Disabled button state - grey styling */
button:disabled {
    background: #2a2a2a;
    color: #666666;
    border-color: #444444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

button:disabled:hover {
    background: #2a2a2a;
    color: #666666;
    border-color: #444444;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}
/* Admin panel buttons - smaller with black text and gray hover */
table button {
    background: #b8c7d1;
    color: #1a1a1a;
    border: 0.5px solid #6c818b;
    padding: 0.4em 1em;
    border-radius: var(--btn-radius);
    font-size: 0.85em;
    cursor: pointer;
    margin: 0.2em 0;
    transition: all var(--transition-fast);
    font-weight: 700;
}
table button:hover {
    background: #9db0bd;
    color: #1a1a1a;
    border-color: #7a8c99;
}

/* Payment status button */
.payment-status-btn {
    border: 1px solid !important;
    padding: 0.4em 1.2em !important;
    border-radius: var(--btn-radius) !important;
    font-size: 0.8em !important;
    cursor: pointer !important;
    margin: 0.1em 0.2em !important;
    transition: all var(--transition-normal) ease !important;
    position: relative !important;
    text-align: center !important;
    display: inline-block !important;
    min-width: 80px !important;
    white-space: nowrap !important;
}

/* Pending button (orange) */
.payment-status-btn.pending-btn {
    background: #ff8c00 !important;
    color: #fff !important;
    border-color: #e67e00 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.payment-status-btn.pending-btn::after {
    content: "betald";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    color: #fff !important;
}

.payment-status-btn.pending-btn:hover {
    background: rgba(45, 80, 22, 0.9) !important;
    color: #fff !important;
    border-color: rgba(26, 48, 9, 0.8) !important;
    box-shadow: 0 3px 8px rgba(45, 80, 22, 0.3) !important;
}

.payment-status-btn.pending-btn:hover .status-text {
    opacity: 0;
}

.payment-status-btn.pending-btn:hover::after {
    opacity: 1;
}

/* Paid button (dark green) */
.payment-status-btn.paid-btn {
    background: #2d5016 !important;
    color: #fff !important;
    border-color: #1a3009 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.payment-status-btn.paid-btn::after {
    content: "pending";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    color: #fff !important;
}

.payment-status-btn.paid-btn:hover {
    background: rgba(61, 107, 31, 0.9) !important;
    color: #fff !important;
    border-color: rgba(26, 48, 9, 0.8) !important;
    box-shadow: 0 3px 8px rgba(45, 80, 22, 0.3) !important;
}

.payment-status-btn.paid-btn:hover .status-text {
    opacity: 0;
}

.payment-status-btn.paid-btn:hover::after {
    opacity: 1;
}

.payment-status-btn .status-text {
    transition: opacity 0.3s ease;
}

/* Payment sub-status button - smaller button showing current payment state */
.payment-sub-status {
    display: block;
    width: 100%;
    margin-top: 0.3em;
    padding: 0.25em 0.6em !important;
    font-size: 0.7em !important;
    border-radius: 0.2em !important;
    border: 1px solid !important;
    text-align: center !important;
    font-weight: 500;
    transition: all 0.2s ease !important;
    cursor: default;
    min-width: auto !important;
    white-space: nowrap !important;
}

/* Sub-status for pending payments */
.payment-sub-status.pending-sub {
    background: rgba(255, 140, 0, 0.2) !important;
    color: #cc5500 !important;
    border-color: rgba(255, 140, 0, 0.4) !important;
}

/* Sub-status for paid payments */
.payment-sub-status.paid-sub {
    background: rgba(45, 80, 22, 0.2) !important;
    color: #1a3009 !important;
    border-color: rgba(45, 80, 22, 0.4) !important;
}

/* Booking status text styling - make them look like small buttons */
.booking-status-text {
    display: inline-block;
    padding: 0.2em 0.5em !important;
    margin: 0.1em !important;
    font-size: 0.65em !important;
    border-radius: 0.2em !important;
    border: 1px solid !important;
    text-align: center !important;
    font-weight: 600;
    cursor: default;
    white-space: nowrap !important;
    min-width: 45px !important;
    transition: all 0.2s ease;
}

.booking-status-text.payment-due-type-trigger {
    cursor: pointer;
}

/* Remove generic hover, implementation moved to JS for predictive text */
/* Arrival status */
.booking-status-text.arrival {
    background: rgba(25, 118, 210, 0.15) !important;
    color: #1565c0 !important;
    border-color: rgba(25, 118, 210, 0.3) !important;
}

/* Checkout status (Yellow) */
.booking-status-text.checkout {
    background: rgba(251, 192, 45, 0.15) !important;
    color: #fbc02d !important;
    border-color: rgba(251, 192, 45, 0.3) !important;
}

/* 24h status */
.booking-status-text.hours-24 {
    background: rgba(192, 57, 43, 0.15) !important;
    color: #c0392b !important;
    border-color: rgba(192, 57, 43, 0.3) !important;
}

/* Checkin/Checkout status button */
.checkin-status-btn {
    border: 1px solid !important;
    padding: 1em 2.5em !important;
    border-radius: 0.9em !important;
    font-size: 1.15em !important;
    cursor: pointer !important;
    margin: 0.5em 0 1.2em 0 !important;
    transition: all var(--transition-normal) ease !important;
    position: relative !important;
    text-align: center !important;
    display: inline-block !important;
    min-width: 120px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.18);
}

/* Not checked in button (dark red) */
.checkin-status-btn.not-checked-in {
    background: #ff8c00 !important;
    color: #fff !important;
    border-color: #e67e00 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    padding: 0.4em 1.2em !important;
    border-radius: var(--btn-radius) !important;
    font-size: 0.8em !important;
    min-width: 80px !important;
    box-shadow: none !important;
    margin: 0.1em 0.2em !important;
}

.checkin-status-btn.not-checked-in .status-text {
  transition: opacity 0.3s;
}
.checkin-status-btn.not-checked-in::after {
  content: "Checka in";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
}
.checkin-status-btn.not-checked-in:hover {
  background: #2e7d32 !important;
  color: #fff !important;
  border-color: #1b5e20 !important;
}
.checkin-status-btn.not-checked-in:hover .status-text {
  opacity: 0;
}
.checkin-status-btn.not-checked-in:hover::after {
  opacity: 1;
}

/* Checked in button (darker, muted red) */
.checkin-status-btn.checked-in {
  background: #2e7d32 !important;
  color: #fff !important;
  border-color: #1b5e20 !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  padding: 0.4em 1.2em !important;
  border-radius: var(--btn-radius) !important;
  font-size: 0.8em !important;
  min-width: 80px !important;
  box-shadow: none !important;
  margin: 0.1em 0.2em !important;
}
.checkin-status-btn.checked-in:hover {
  background: #388e3c !important;
  color: #fff !important;
  border-color: #27632a !important;
}

/* Checked out (dark red -> gray - clickable to reset) */
.checkin-status-btn.checked-out {
    background: #c0392b;
    color: #fff;
    border-color: #a93226;
    cursor: pointer;
}

.checkin-status-btn.checked-out::after {
    content: "Checka in";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    color: #000;
}

.checkin-status-btn.checked-out:hover {
    background: rgba(169, 50, 38, 0.85);
    color: #fff;
    border-color: rgba(146, 43, 32, 0.8);
    box-shadow: 0 3px 8px rgba(169, 50, 38, 0.25);
}

.checkin-status-btn.checked-out:hover .status-text {
    opacity: 0;
}

.checkin-status-btn.checked-out:hover::after {
    opacity: 1;
}

.checkin-status-btn .status-text {
    transition: opacity 0.3s ease;
}

/* Countdown timer styling */
.countdown-timer {
    color: #c0392b;
    font-weight: 500;
    font-size: 0.9em; /* Större font */
    cursor: help;
    position: relative;
    display: inline-block;
    padding: 3px 8px; /* Mer padding */
    background: rgba(192, 57, 43, 0.1);
    border-radius: 4px; /* Lite rundare */
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.countdown-timer.warning {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.2);
    animation: pulse 2s infinite;
}

.countdown-timer.critical {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.15);
    border-color: rgba(192, 57, 43, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0; /* Ta bort all margin från table */
    background: var(--table-bg);
    border-radius: 0; /* Ingen border-radius på table själv */
    overflow: hidden;
    box-shadow: none; /* Flytta skugga till container */
    border: none; /* Ingen border på table */
    table-layout: auto;
    word-wrap: break-word;
}
th, td {
    padding: 0.8em 1em;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Lighter border for dark theme */
    border-right: none; /* Removed vertical borders for a cleaner look */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 0;
    overflow: visible; /* Låt tooltips flyta fritt */
    position: relative; /* Nödvändigt för absolut positionering */
}

/* Remove right border from last column */
th:last-child, td:last-child {
    border-right: none;
}
th {
    background: var(--table-header);
    color: var(--table-header-text);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none; /* Removed the 2px border that looked like a gap */
    position: relative;
    overflow: hidden;
    text-align: center;
}
th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}
th:hover::before {
    left: 100%;
}
th:first-child {
    border-top-left-radius: 12px;
}
th:last-child {
    border-top-right-radius: 12px;
}
tr:hover {
    background: rgba(25, 118, 210, 0.04);
    transition: background 0.2s ease;
}

/* Vertical hover effect for columns */
td:hover {
    background: rgba(25, 118, 210, 0.06);
    transition: background 0.2s ease;
    position: relative;
}

/* Highlight entire column on cell hover */
table {
    position: relative;
    overflow: hidden !important; /* Contain the vertical hover highlight within the table */
}

td:hover::before {
    content: '';
    position: absolute;
    top: -1000px;
    bottom: -1000px;
    left: 0;
    right: 0;
    background: rgba(25, 118, 210, 0.03);
    pointer-events: none;
    z-index: -1;
}

/* Filter container for admin panel */
.filter-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(25, 118, 210, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(25, 118, 210, 0.2);
}

.table-filters {
    text-align: center;
    margin: 0;
    padding: 12px;
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.table-filters a {
    color: var(--primary);
    text-decoration: none;
    padding: 6px 12px;
    margin: 0 6px;
    border-radius: 5px;
    transition: background-color 0.2s;
    font-weight: 500;
}

.table-filters a:hover {
    background-color: rgba(130, 170, 255, 0.2);
}

.table-note {
    text-align: center;
    padding: 10px 15px;
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    border-top: none;
    margin: 0 0 2em 0;
}

/* Improved, subtle pagination bar */
.pagination-bar {
    background: rgba(45, 55, 72, 0.35);
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    margin: 0;
    text-align: center;
    padding: 18px 15px 14px 15px;
    font-size: 1.15em;
    color: var(--text, #f5f5f5);
}

/* Anpassa table-container för att passa med filter och note */
.table-container {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
}

/* Stack logic for unified look (e.g. admin table) */
.table-filters + .table-container {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
.table-container + .pagination-bar {
    border-top: none !important;
}
.pagination-bar + .table-container { /* Case where pagination is above (rare but possible) */
    border-top: none !important;
}
.pagination-bar + .table-note {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
.table-container:has(+ .pagination-bar),
.table-container:has(+ .table-note) {
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.pagination-bar:has(+ .table-note) {
    border-bottom: none !important;
}

.table-container form {
    margin: 0 !important;
}
tr:last-child td {
    border-bottom: none !important;
}

.status-paid { color: var(--success); }
.status-pending { color: var(--warn); }
.status-cancelled { color: var(--danger); }

/* Swedish Message Styling with Dark theme styling */

.msg-error, .meddelande-fel {
    background: rgba(244, 67, 54, 0.15);
    color: #ff6e6e;
    padding: 1em 1.2em;
    border-radius: 8px;
    margin-bottom: 1em;
    border: 2px solid #c62828;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
    font-weight: 500;
    position: relative;
}

/* Theme toggle switch */
.theme-toggle-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5em;
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.8em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em 0.8em;
  color: var(--primary);
  font-size: 1em;
  margin: 0;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  vertical-align: middle;
  cursor: pointer;
}
.theme-switch input[type="checkbox"] {
  opacity: 0;
  width: 60px;
  height: 30px;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  z-index: 2;
  cursor: pointer;
}
.theme-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 30px;
  transition: background 0.2s;
  z-index: 1;
}
.theme-slider:before {
  position: absolute;
  content: "";
  height: 22px; width: 22px;
  left: 4px; bottom: 4px;
  background-color: #666;
  border-radius: 50%;
  transition: .3s;
}
.theme-switch input[type="checkbox"]:checked + .theme-slider {
  background: #c62828;
}
.theme-switch input[type="checkbox"]:checked + .theme-slider:before {
  transform: translateX(30px);
  background: #ffe066;
}

/* Modern Search Box Design System - Dark theme design */
html {
    width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100vw;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
}

.app-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    padding: 2em 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Grönsvart nyans för checkin-fönster, subtilt inspirerad av checkin-knappen */
.search-box {
    background: #202d22;
    border: 2px solid #355c2a;
    color: #e0ffe0;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(61, 107, 31, 0.18), 0 1px 8px 0 #1a2b1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90vw;
    max-width: 280px;
    padding: 1rem 0.6rem;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
}

/* Mobile responsive for search-box */
@media (min-width: 360px) {
    .search-box {
        width: 90vw;
        max-width: 300px;
        padding: 1.2rem 0.8rem;
    }
}

@media (min-width: 480px) {
    .search-box {
        width: 90vw;
        max-width: 350px;
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 600px) {
    .search-box {
        width: auto;
        max-width: 420px;
        padding: 2rem 1.2rem;
    }
}

@media (min-width: 768px) {
    .search-box {
        width: auto;
        max-width: 420px;
        padding: 2.8rem 1.5rem;
    }
}

/* 2. Glassmorphism */
.search-box-style2 {
    background: var(--card-bg);
    padding: 2.5rem 3.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(25, 118, 210, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid rgba(25, 118, 210, 0.3);
    border-top: 2px solid rgba(255,255,255,0.3);
    border-left: 2px solid rgba(255,255,255,0.2);
    min-width: unset;
    width: 100%;
    max-width: 500px;
}

/* 3. Neumorphism */
.search-box-style3 {
    background: var(--search-bg);
    padding: 2.5rem 3.5rem;
    border-radius: 1.25rem;
    box-shadow: 8px 8px 24px #16191e, -8px -8px 24px #222a39;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: 2px solid var(--bg);
    outline-offset: 4px;
    min-width: unset;
    width: 100%;
    max-width: 500px;
}

/* 4. Gradient Border */
.search-box-style4 {
    background: var(--search-bg);
    padding: 2.5rem 3.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(25, 118, 210, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid;
    border-image: linear-gradient(120deg, #1976d2, #21cbf3, #ff4081) 1;
    min-width: unset;
    width: 100%;
    max-width: 500px;
}

/* 5. Deep Blue */
.search-box-deepblue {
    background: #101a33;
    padding: 2.5rem 3.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(16, 32, 64, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid var(--deepblue);
    min-width: unset;
    width: 100%;
    max-width: 500px;
}

/* 6. Cotton Candy Pink */
.search-box-pink {
    background: linear-gradient(135deg, var(--cotton-candy) 0%, var(--pink-light) 100%);
    padding: 2.5rem 3.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 #ffb1e6bb;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 4px solid var(--pink);
    min-width: 400px;
    max-width: 500px;
}

/* 7. Lavender Dream */
.search-box-lavender {
    background: linear-gradient(120deg, var(--lavender) 0%, #fbeaff 100%);
    padding: 2.5rem 3.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 #e6e6fa99;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 4px solid var(--lavender-dark);
    min-width: 400px;
    max-width: 500px;
}

/* 8. Aqua Pastel */
.search-box-aqua {
    background: linear-gradient(135deg, #e0fcff 0%, var(--aqua) 100%);
    padding: 2.5rem 3.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 #b3e5fc99;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 4px solid var(--aqua-dark);
    min-width: 400px;
    max-width: 500px;
}

/* Search Box Content Styling */
.search-box h1,
.search-box-style2 h1,
.search-box-style3 h1,
search-box-style4 h1 {
    color: var(--search-primary);
    margin-bottom: 2rem;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

.search-box-deepblue h1 { color: var(--blue-light); }
.search-box-pink h1 { color: var(--pink); text-shadow: 0 2px 12px var(--hot-pink); }
.search-box-lavender h1 { color: var(--lavender-dark); text-shadow: 0 2px 12px #eac6f7; }
.search-box-aqua h1 { color: var(--aqua-dark); }

/* Form styling within search boxes */
.search-box form,
.search-box-style2 form,
.search-box-style3 form,
search-box-style4 form,
.search-box-deepblue form,
.search-box-pink form,
.search-box-lavender form,
search-box-aqua form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Modern input styling for search boxes */
.search-box input[type="text"],
.search-box-style2 input[type="text"],
.search-box-style3 input[type="text"],
search-box-style4 input[type="text"],
.search-box-deepblue input[type="text"],
.search-box-pink input[type="text"],
.search-box-lavender input[type="text"],
.search-box-aqua input[type="text"],
.search-box input[type="number"],
.search-box input[type="email"],
.search-box input[type="password"],
.search-box input[type="tel"] {
    width: 100%;
    padding: 0.9em 1.2em;
    border: 2px solid #29404c;
    border-radius: 0.7em;
    background: #1a2028;
    color: #fff;
    font-size: 1.08em;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    transition: border-color 0.3s, background 0.3s;
}

.search-box input[type="text"]:focus,
.search-box input[type="number"]:focus,
.search-box input[type="email"]:focus,
.search-box input[type="password"]:focus,
.search-box input[type="tel"]:focus {
    border-color: #1976d2;
    background: #232b36;
    outline: none;
}

/* Modern button styling for search boxes */
.search-box button,
.search-box-style2 button,
.search-box-style3 button,
search-box-style4 button,
.search-box-deepblue button,
.search-box-pink button,
.search-box-lavender button,
search-box-aqua button {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 1em 2.5em;
    border-radius: 0.9em;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1), color 0.35s cubic-bezier(.4,0,.2,1);
    margin: 0.5em 0 1.2em 0;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.18);
}

.search-box button:hover,
.search-box-style2 button:hover,
.search-box-style3 button:hover,
search-box-style4 button:hover,
.search-box-deepblue button:hover,
.search-box-pink button:hover,
.search-box-lavender button:hover,
search-box-aqua button:hover {
    background: #1251a3;
    color: #fff;
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.28);
}

.search-box button:active,
.search-box-style2 button:active,
.search-box-style3 button:active,
search-box-style4 button:active,
.search-box-deepblue button:active,
.search-box-pink button:active,
.search-box-lavender button:active,
search-box-aqua button:active {
    background: #0d355f;
    color: #fff;
}

/* Responsive design for search boxes */
@media (max-width: 600px) {
    .search-box,
    .search-box-style2,
    .search-box-style3,
    .search-box-style4,
    .search-box-deepblue,
    .search-box-pink,
    .search-box-lavender,
    .search-box-aqua {
        padding: 1.2rem 0.8rem;
        border-radius: 0.7rem;
        min-width: auto;
        max-width: 90vw;
    }

    .search-box input[type="text"],
    .search-box-style2 input[type="text"],
    .search-box-style3 input[type="text"],
    .search-box-style4 input[type="text"],
    .search-box-deepblue input[type="text"],
    .search-box-pink input[type="text"],
    .search-box-lavender input[type="text"],
    .search-box-aqua input[type="text"],
    .search-box input {
        width: 95%;
        font-size: 1rem;
    }

    .style-switcher {
        font-size: 0.95em;
    }

    .search-box h1,
    .search-box-style2 h1,
    .search-box-style3 h1,
    .search-box-style4 h1,
    .search-box-deepblue h1,
    .search-box-pink h1,
    .search-box-lavender h1,
    .search-box-aqua h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Checkin Card - visually linked to checkin/out button */
.checkin-card {
    background: rgba(32, 45, 34, 0.65); /* Mörk grönsvart, transparent */
    border: 2px solid rgba(74, 124, 58, 0.25);
    color: #eaffea;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(61, 107, 31, 0.13);
    backdrop-filter: blur(8px);
    padding: 2.2em 2em 2em 2em;
    margin: 2em auto;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}

.search-results {
    background: #273a2a;
    border: 2px solid #4a7c3a;
    color: #eaffea;
    border-radius: 1.1rem;
    box-shadow: 0 4px 18px 0 rgba(61, 107, 31, 0.13);
    padding: 2rem 1.5rem;
    margin-top: 2.2rem;
    width: 100%;
    max-width: 420px;
    transition: background 0.2s, color 0.2s;
}

/* Nya små statusknappar för checkin/checkout, isolerade med .checkin-action-btn och extra specifika selektorer */
.search-results .checkin-action-btn {
  border: 1px solid;
  padding: 0.4em 1.2em;
  border-radius: 0.3em;
  font-size: 0.8em;
  cursor: pointer;
  margin: 0.1em 0.2em;
  font-weight: 700;
  text-align: center;
  display: inline-block;
  min-width: 80px;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: none;
  background: #eee;
  color: #222;
}
.search-results .checkin-action-btn.not-checked-in {
  background: #c0392b;
  color: #fff;
  border-color: #a93226;
}
.search-results .checkin-action-btn.not-checked-in:hover {
  background: #2e7d32;
  color: #fff;
  border-color: #1b5e20;
}
.search-results .checkin-action-btn.checked-in {
  background: #2e7d32;
  color: #fff;
  border-color: #1b5e20;
}
.search-results .checkin-action-btn.checked-in:hover {
  background: #c0392b;
  color: #fff;
  border-color: #a93226;
}
.search-results .checkin-action-btn.checked-out {
  background: #444;
  color: #fff;
  border-color: #333;
  cursor: default;
}
search-results .checkin-action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Wizard/stepper for booking stages */
.booking-stages {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em 0 2.5em 0;
  gap: 1.5em;
}
.booking-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  color: #b0b0b0;
  transition: color 0.3s;
}
.booking-stage.active {
  color: var(--primary);
}
.booking-stage.completed {
  color: var(--success);
}
.booking-stage:not(:last-child)::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 100%;
  width: 2.5em;
  height: 3px;
  background: linear-gradient(90deg, #1976d2 60%, #e0e0e0 100%);
  transform: translateY(-50%);
  z-index: 0;
}
.booking-stage.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--primary) 60%, #e0e0e0 100%);
}
.booking-stage.completed:not(:last-child)::after {
  background: linear-gradient(90deg, var(--success) 60%, #e0e0e0 100%);
}

/* Fix for Sammanfattning: make checkbox always clickable */
.sammanfattning-accept {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 1.2em 0 0.5em 0;
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
}
.sammanfattning-accept input[type="checkbox"] {
  width: 1.3em;
  height: 1.3em;
  accent-color: var(--primary);
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: 0.2em;
}
.sammanfattning-accept label {
  pointer-events: auto !important;
  opacity: 1 !important;
  position: static !important;
  background: none !important;
  padding: 0 !important;
  z-index: auto !important;
  min-width: 0;
  flex: none;
}
.sammanfattning-accept a {
  pointer-events: auto !important;
  opacity: 1 !important;
}
.sammanfattning-accept label {
  position: static;
  font-size: 1em;
  color: var(--text);
  opacity: 1;
  cursor: pointer;
  padding: 0;
  background: none;
  z-index: 2;
}

/* Remove floating label effect for this checkbox */
.sammanfattning-accept input[type="checkbox"] + label {
  top: auto;
  left: auto;
  transform: none;
  font-size: 1em;
  color: var(--text);
  background: none;
  font-weight: 500;
  opacity: 1;
  position: static;
  padding: 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Prislista tillval - enkel horisontell rad för checkboxar */
#priceListOptions input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
  accent-color: var(--primary);
}
#priceListOptions label {
  position: static;
  display: inline;
  font-size: 1em;
  color: var(--text);
  opacity: 1;
  background: none;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  font-weight: 400;
}
#priceListOptions div {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
  gap: 0.2em;
}

/* Gör inaktiverade rumval gråa i dropdown för bättre UX */
select#room_id option:disabled {
  color: #aaa;
  background: #f5f5f5;
}

/* --- Fix for phone flag visibility and interactivity --- */
#phoneFlag {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  position: absolute !important;
  left: 0.8em !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.3em !important;
  background: #fff !important; /* For debugging, remove if not needed */
  color: #222 !important;
  user-select: auto !important;
  border: 1px solid #1976d2 !important; /* For debugging, remove if not needed */
  border-radius: 4px !important;
  padding: 0 0.2em !important;
}

/* Ensure parent containers do not hide overflow */
.form-group, .phone-group {
  overflow: visible !important;
}

.theme-switch, .theme-switch input[type="checkbox"] {
  pointer-events: auto !important;
}

/* Inline editing for admin table */
.admin-table td[contenteditable],
.admin-table td.inline-editing {
  background: #fffbe6;
  color: #222;
  border: 2px solid #1976d2;
  outline: none;
  box-shadow: 0 0 0 2px #ffe066;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.admin-table td[contenteditable]:focus,
.admin-table td.inline-editing:focus {
  background: #fffde7;
  border-color: #21cbf3;
  box-shadow: 0 0 0 2px #21cbf3;
}
.admin-table td.inline-edit-error {
  background: #ffeaea;
  color: #c0392b;
  border: 2px solid #c0392b;
  box-shadow: 0 0 0 2px #ff6e6e;
  animation: shake 0.2s 2;
}
.admin-table-editable {
  cursor: pointer;
  border-bottom: 1px dashed #1976d2;
  transition: background 0.2s, color 0.2s;
  padding: 0.1em 0.2em;
  border-radius: 4px;
}
.admin-table-editable:hover, .admin-table-editable:focus {
  background: #e3f2fd;
  color: #1976d2;
  outline: 1.5px solid #1976d2;
}

/* 9th heading: Check-in */
/* th:nth-child(9)::after { */
/*   content: "\1F6CE\FE0F C-In";  🛎️ C-In */
/*   font-size: 1em; */
/*   margin-left: 0.3em; */
/* } */

/* 10th heading: Check-out */
/* th:nth-child(10)::after { */
/*   content: "\1F6AA C-Ut";  🚪 C-Ut */
/*   font-size: 1em; */
/*   margin-left: 0.3em; */
/* } */

.remove-btn {
  background: #c0392b !important;
  color: #fff !important;
  border: 1px solid #a93226 !important;
  font-weight: 700;
  padding: 0.4em 1.2em !important;
  border-radius: var(--btn-radius) !important;
  font-size: 0.8em !important;
  min-width: 80px !important;
  box-shadow: none !important;
  margin: 0.1em 0.2em !important;
  cursor: pointer;
  transition: background 0.2s;
}
.remove-btn:hover {
  background: #a93226 !important;
}
.inactive-btn {
  background: #888 !important;
  color: #fff !important;
  border: 1px solid #888 !important;
  font-weight: 700;
  padding: 0.4em 1.2em !important;
  border-radius: var(--btn-radius) !important;
  font-size: 0.8em !important;
  min-width: 80px !important;
  box-shadow: none !important;
  margin: 0.1em 0.2em !important;
  cursor: pointer;
  transition: background 0.2s;
}
.inactive-btn:hover {
   background: #4a4a4a !important;
}
.checkin-dot {
  cursor: pointer;
  font-size: 1.3em;
  transition: color 0.2s;
}
.checkin-dot:hover, .checkin-dot.checked-in:hover {
  color: #ffd600;
}
.checkin-dot.checked-in::after {
  content: '';
}
.checkin-dot.checked-out {
  color: #d32f2f;
  cursor: default;
}
.checkout-dot {
  cursor: pointer;
  font-size: 1.3em;
  transition: color 0.2s;
}
.checkout-dot.checked-in {
  color: #4caf50;
}
.checkout-dot.checked-in:hover {
  color: #ffd600;
}
.checkout-dot.checked-out {
  color: #d32f2f;
  cursor: default;
}

/* Grey out inactive rows */
.inactive-row {
    opacity: 0.5;
    background: #ccc !important;
}

/* Expandable row details panel */
.booking-details-panel {
  background: rgba(33, 39, 55, 0.92); /* slightly darker than card-bg, subtle transparency */
  color: var(--text);
  border-radius: 0.5em;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  padding: 1.2em 1.5em;
  margin: 0.5em 0;
  font-size: 1.05em;
  transition: background 0.2s;
  max-width: calc(100% - 2px); /* 2px narrower than table row */
  width: 418px;
  min-width: 0;
  box-sizing: border-box;
}
.expand-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  color: var(--text-light);
}
.expand-error {
  color: #ffb1b1;
  background: rgba(44, 0, 0, 0.18);
  border-radius: 0.3em;
  padding: 0.7em 1em;
  margin: 0.5em 0;
  font-size: 1em;
}

/* Force expanded details row to be visible and styled for debugging */
.expanded-details-row {
  display: table-row !important;
  background: #23283a !important;
  border-top: 2px solid #1976d2 !important;
  z-index: 10;
}
.expanded-details-row td {
  padding: 1.5em 2em !important;
  border-bottom: 2px solid #1976d2 !important;
  background: #23283a !important;
}

/* Expanded row: revert td to normal table cell, add inner wrapper for insetting */
.expanded-details-row td {
  text-align: center;
  padding: 0.2em 0 !important;
  border-top: 1px solid #4f9bff5b !important; /* lighter blue for visual connection */
  border-bottom: 2px solid #1976d2 !important;
  background: #23283a !important;
  width: auto !important;
  margin: 0;
  box-sizing: border-box;
}
.expanded-details-row-inner {
  max-width: calc(100% - 2px - 2em);
  width: 99.7%;
  margin: 0 auto;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* --- Two-panel layout for booking details and comments --- */
.booking-details-flex {
  display: flex;
  flex-direction: row;
  gap: 2.5em;
  align-items: flex-start;
  width: 100%;
}
.booking-details-panel {
  flex: 2 1 0;
  min-width: 260px;
  max-width: 520px;
}
.booking-comments-panel {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.booking-comments-new-entry.right-entry {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.booking-comments-new-entry.right-entry label {
  align-self: flex-start;
  margin-bottom: 0.2em;
  font-size: 1em;
  color: var(--primary);
  text-align: left;
}
.booking-comments-new-entry.right-entry textarea {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}
.booking-comments-new-entry.right-entry button,
.booking-comments-new-entry.right-entry .comments-entry-save-status {
  align-self: flex-end;
  margin-top: 0.3em;
}

/* --- Comments panel heading and entry buttons --- */
.comments-panel-heading {
  width: 100%;
  text-align: left;
  margin-bottom: 0.5em;
  font-size: 1.08em;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.booking-comment-entry .edit-comment-btn,
.booking-comment-entry .delete-comment-btn {
  font-size: 0.92em;
  margin-left: 0.5em;
  padding: 0.2em 0.7em;
  border-radius: 0.2em;
  border: 1px solid var(--border-color);
  background: #232b3a;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.booking-comment-entry .edit-comment-btn:hover {
  background: var(--primary);
  color: #fff;
}
.booking-comment-entry .delete-comment-btn:hover {
  background: var(--danger);
  color: #fff;
}
/* ========================================
   Tab Navigation System - Admin Settings
   ======================================== */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 2em;
  padding: 1em;
  background: transparent;
  border-radius: 10px;
  justify-content: center;
}

.tab-btn {
  padding: 0.7em 1.2em;
  border: 2px solid #3a4a5a;
  background: #2a3a4a;
  color: #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #3a4a5a;
  color: #fff;
  border-color: #4a5a6a;
}

.tab-btn.active {
  background: #4a7c59;
  color: #fff;
  border-color: #5a9c69;
}

.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Space between the centered elements */
  width: 100%;
}

/* Ensure direct children inside tabs have a reasonable width and are centered */
.tab-content.active > *:not(.gr-modal):not(.gr-modal-content) {
  width: 100%;
  max-width: 1000px; /* Consistent alignment for all content blocks */
  margin-left: auto;
  margin-right: auto;
}

/* Specific elements like tables should allow horizontal scrolling but stay centered */
.tab-content.active > [style*="overflow-x:auto"],
.tab-content.active > .table-container {
  max-width: 100%;
}

/* Titles and descriptive text should be centered for a balanced look */
.tab-content.active > h2,
.tab-content.active > h3 {
  text-align: center;
  width: 100%;
}

.tab-content.active > p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Fix vertical stacking for booking details fields */
.booking-details-panel, .booking-field-row {
}
.booking-field-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.7em !important;
  margin-bottom: 0.2em;
}
.booking-details-panel label {
  position: static !important;
  font-weight: bold;
  font-size: 1.25em;
  margin-bottom: 0.1em;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: none !important;
  padding: 0 !important;
  z-index: auto !important;
}
.booking-details-panel input,
.booking-details-panel select {
  width: 110px !important;
  max-width: 100%;
  box-sizing: border-box;
  height: 2.2em !important;
  padding: 0.2em 0.7em !important;
  font-size: 1em !important;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Medium screens (tablets) */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 15px;
  }
  
  .form-card {
    max-width: 100%;
    padding: 1.5em 1em;
    margin: 1em auto;
  }
  
  .form-card.booking-wizard {
    padding: 1.2em 1em;
  }
  
  .booking-wizard h1 {
    font-size: 1.5em;
  }
  
  /* removed duplicate .booking-stages and .booking-stage rules for clarity */
  
  .modal-content {
    max-width: 95vw;
    padding: 1.5em 1.2em;
    max-height: 85vh;
  }
  
  .modal-content h2 {
    font-size: 1.3em;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    padding: 0.8em 0.8em;
    font-size: 1em;
  }
  
  button,
  .next-btn,
  .back-btn {
    padding: 0.7em 1.5em;
    font-size: 1em;
  }
  
  .admin-add-booking-btn {
    padding: 0.8em 1.8em;
    font-size: 1.1em;
  }
  
  table {
    font-size: 0.9em;
  }
  
  table th,
  table td {
    padding: 0.6em 0.4em;
  }
  
  .om-card,
  .form-card.admin {
    max-width: 95vw;
    margin: 20px auto 0 auto;
    padding: 1.5em 1em;
  }
  
  .om-title {
    font-size: 1.6em;
  }
  
  .about-section {
    font-size: 0.95em;
  }
  
  h1, h2 {
    font-size: 1.3em;
  }
}

/* Small screens (phones) */
@media (max-width: 480px) {
  body {
    padding: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .form-card {
    padding: 1em 0.8em;
    margin: 0.5em auto;
    max-width: 100%;
  }
  
  .form-card.booking-wizard {
    padding: 1em 0.7em;
  }
  
  .booking-wizard h1 {
    font-size: 1.3em;
    margin-bottom: 0.8em;
  }
  
  .booking-stages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4em;
  }
  
  .booking-stage {
    padding: 0.4em 0.5em;
    font-size: 0.8em;
    text-align: center;
  }
  
  .wizard-progressbar {
    font-size: 0.9em;
  }
  
  .form-group {
    margin-bottom: 1em;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    padding: 0.7em 0.6em;
    font-size: 1em;
    box-sizing: border-box;
  }
  
  label {
    font-size: 0.9em;
  }
  
  button,
  .next-btn,
  .back-btn {
    width: 100%;
    padding: 0.7em 1em;
    margin-top: 0.5em;
    font-size: 0.95em;
    box-sizing: border-box;
  }
  
  .admin-add-booking-btn {
    width: 100%;
    padding: 0.8em 1em;
    font-size: 1em;
    margin-bottom: 1em;
  }
  
  .modal {
    padding: 10px;
    z-index: 10000;
  }
  
  .modal-content {
    max-width: 100vw;
    width: 100%;
    padding: 1.2em 0.8em;
    max-height: 95vh;
    margin: 2.5vh auto;
    border-radius: 0.8rem;
    box-sizing: border-box;
  }
  
  .modal-content h2 {
    font-size: 1.2em;
    margin-bottom: 1em;
  }

  .modal .form-group {
    margin-bottom: 0.8em;
  }

  .modal .form-group {
    margin-bottom: 0.8em;
    position: relative;
  }

  .modal input[type="text"],
  .modal input[type="email"],
  .modal input[type="tel"],
  .modal input[type="number"],
  .modal input[type="date"],
  .modal select {
    width: 100%;
    padding: 0.7em 0.8em;
    font-size: 16px;
    border-radius: 6px;
    background: #0f1419 !important;
    transition: all 0.3s ease;
  }

  .modal .form-group label {
    position: absolute;
    top: 0.7em;
    left: 0.8em;
    font-size: 0.9em;
    background: rgba(15, 20, 25, 0.8);
    padding: 0 0.2em;
  }

  .modal input[type="text"]:focus + label,
  .modal input[type="email"]:focus + label,
  .modal input[type="tel"]:focus + label,
  .modal input[type="number"]:focus + label,
  .modal input[type="date"]:focus + label,
  .modal select:focus + label,
  .modal input[type="text"]:not(:placeholder-shown) + label,
  .modal input[type="email"]:not(:placeholder-shown) + label,
  .modal input[type="tel"]:not(:placeholder-shown) + label,
  .modal input[type="number"]:not(:placeholder-shown) + label,
  .modal input[type="date"]:not(:placeholder-shown) + label {
    top: -0.5em;
    left: 0.8em;
    font-size: 0.8em;
    color: #21cbf3;
  }

  .modal input[type="text"]:focus,
  .modal input[type="email"]:focus,
  .modal input[type="tel"]:focus,
  .modal input[type="number"]:focus,
  .modal input[type="date"]:focus,
  .modal select:focus {
    background: #0a0e14 !important;
    transform: translateY(-10px);
  }

  .modal button[type="submit"] {
    width: 100%;
    padding: 0.9em;
    font-size: 1em;
    margin-top: 1em;
  }
    margin-bottom: 1em;
  }
  
  .close-modal {
    font-size: 1.8em;
    top: 0.8em;
    right: 0.8em;
  }
  
  table {
    display: block;
    overflow-x: auto;
    font-size: 0.85em;
    width: 100%;
  }
  
  table th,
  table td {
    padding: 0.5em 0.3em;
    white-space: nowrap;
  }
  
  .form-card {
    padding: 1em 0.8em;
    margin: 0.5em auto;
    max-width: 600px;
    width: 100%;
  }
  .form-card.booking-wizard {
    padding: 1em 0.7em;
    max-width: 600px;
    width: 100%;
  }
  .om-title {
    font-size: 1.4em;
    letter-spacing: 1px;
  }
  
  .about-section {
    font-size: 0.9em;
    line-height: 1.5;
  }
  
  h1, h2 {
    font-size: 1.2em;
  }
  
  .form-card.admin {
    max-width: 100vw;
    padding: 1em 0.8em;
  }
  
  /* Admin table - make scrollable on mobile */
  .admin-table-wrapper {
    overflow-x: auto;
    display: block;
    width: 100%;
  }
  
  /* Guestbook responsive */
  .entry-card {
    padding: 1em;
  }
  
  .entry-actions {
    flex-direction: column;
    gap: 0.3em;
  }
  
  .entry-actions button {
    width: 100%;
    padding: 0.6em;
  }
  
  /* Inquiry cards */
  .inquiry-card {
    padding: 1em;
  }
  
  .inquiry-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .inquiry-actions {
    flex-direction: column;
    gap: 0.3em;
  }
  
  .inquiry-actions button {
    width: 100%;
    padding: 0.6em;
  }
  
  /* Theme toggle */
  .theme-toggle-wrapper {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 6px;
  }
  
  .theme-toggle {
    font-size: 1.2em;
  }
  
  /* Main nav buttons */
  .main-nav {
    gap: 0.6em;
    margin-bottom: 1.5em;
  }
  
  .main-nav-btn {
    width: 100%;
    max-width: 90vw;
    padding: 0.8em 1em;
    font-size: 0.95em;
  }
  
  /* Prevent horizontal scrolling */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Extra small screens (small phones, < 360px) */
@media (max-width: 360px) {
  body {
    font-size: 13px;
  }
  
  .form-card {
    padding: 0.8em 0.6em;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    padding: 0.6em;
    font-size: 0.95em;
  }
  
  button,
  .next-btn,
  .back-btn {
    padding: 0.6em 0.8em;
    font-size: 0.9em;
  }
  
  h1, h2 {
    font-size: 1.1em;
  }
  
  .om-title {
    font-size: 1.2em;
  }
          /* Fit window to content height */
        html, body {
            height: 100%;
            width: 100%;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            margin: 0;
        }
        
        .form-card.login {
            max-width: 100%;
            width: 100%;
            padding: 0.2em;
            margin: 0 auto;
            flex-shrink: 0;
        }
        
        .form-card.login h1 {
            font-size: 1.8em;
            margin-bottom: 1.2em;
            text-align: center;
        }
        
        .form-card.login .form-group {
            margin-bottom: 1.2em;
        }
        
        .form-card.login button {
            width: 100%;
            padding: 0.8em;
            font-size: 1em;
            margin-top: 0.5em;
        }
        
        /* Mobile styles */
        @media (max-width: 480px) {
            html, body {
                padding: 1px;
            }
            
            .form-card.login {
                max-width: 100%;
                padding: 0.5em 0.1em;
            }
            
            .form-card.login h1 {
                font-size: 1.5em;
                margin-bottom: 1em;
            }
            
            input[type="text"],
            input[type="password"] {
                padding: 0.7em 0.6em;
                font-size: 1em;
            }
            
            .msg-error {
                padding: 0.8em;
                font-size: 0.95em;
            }
        }
}

/* --- intl-tel-input CSS fixes for proper flag display --- */
.iti {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.iti input {
  width: 100% !important;
  padding-top: 0.9em !important;
  padding-bottom: 0.9em !important;
  padding-right: 1.1em !important;
  /* padding-left is handled by ITI JS */
  background: #1e283c !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 8px !important;
  font-size: 1em !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.iti input:hover {
  background: rgba(36, 43, 55, 0.8) !important;
  border-color: rgba(25, 118, 210, 0.7) !important;
}

.iti input:focus {
  background: #22304a !important;
  border-color: #21cbf3 !important;
  box-shadow: 0 0 20px rgba(33, 203, 243, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  outline: none !important;
}

/* Fix for the floating label */
.iti + label {
  left: 5.8em !important; /* Position past the dial code area */
  z-index: 5 !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
}

/* Floating states for ITI labels */
.iti:focus-within + label,
.form-group:has(.iti input:not(:placeholder-shown)) label {
  top: -0.6em !important;
  left: 0.8em !important;
  font-size: 0.85em !important;
  color: #21cbf3 !important;
  background: #1e283c !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  z-index: 11 !important;
  padding: 0 0.4em !important;
}

/* Fix Country Dropdown */
.iti__country-list {
  background: #1e283c !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  z-index: 2000 !important;
}

.iti__country {
  padding: 8px 12px !important;
  color: #fff !important;
}

.iti__country:hover {
  background: rgba(25, 118, 210, 0.2) !important;
}

.iti__selected-flag {
  background: transparent !important;
  padding: 0 8px 0 14px !important;
}

/* Ensure the flag uses its native sprite sizing - REMOVED background-size: contain which broke it */
.iti__flag {
  box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.iti__selected-dial-code {
  color: #fff !important;
  font-weight: 600 !important;
  margin-left: 8px !important;
}
