/* ===========================
   TOKENS & RESET
   =========================== */
:root {
  /* Base */
  --bg: #0f1419;
  --bg-card: #111827;
  --bg-card-soft: #020617;

  /* Brand accents */
  --accent: #f97316;        /* SushiYay orange-salmon */
  --accent-soft: #fed7aa;   /* Soft orange glow */
  --accent-alt: #22c55e;    /* YayGroup green */

  /* Text */
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft-strong: #cbd5f5;

  /* States */
  --danger: #ef4444;
  --success: #22c55e;

  /* UI */
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, .65);
  --border-subtle: 1px solid rgba(148, 163, 184, .25);
  --transition-fast: .2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ===========================
   BODY & GLOBAL
   =========================== */
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, #4338ca 0, transparent 50%),
    radial-gradient(circle at 100% 100%, #a855f7 0, transparent 55%),
    #0f1419;
  color: var(--text-main);
}


a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  opacity: .85;
}

/* ===========================
   LAYOUT
   =========================== */
.wrap {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px 40px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   CARD
   =========================== */
.card {
  background:
    radial-gradient(circle at 0 0, #1e293b 0, transparent 45%),
    var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  border: var(--border-subtle);
  backdrop-filter: blur(18px);
  margin-top: 0;
}

.card.card-unified {
  display: flex;
  flex-direction: column;
}

.card-header-top {
  margin: 0 0 20px 0;
  padding: 0 0 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.card-header-top h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: .03em;
}

.card-header-top p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===========================
   ALERT / NOTIF
   =========================== */
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 16px 0;
}

.alert-ok {
  border: 1px solid rgba(34, 197, 94, .65);
}

.alert-ok h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.alert-ok p {
  margin: 4px 0;
  font-size: 13px;
}

.booking-code {
  font-size: 20px;
  font-weight: bold;
  color: #f97316;
  margin: 8px 0;
}

.alert-err {
  border: 1px solid rgba(239, 68, 68, .8);
  color: #fecaca;
}

.alert-err ul {
  margin: 0;
  padding-left: 20px;
}

/* ===========================
   FORM
   =========================== */
.form-col .card {
  margin-top: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* Input, select, textarea */
input[type="text"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 11px;
  border-radius: 999px;
  border: 1.5px solid #374151;
  background: linear-gradient(135deg, #111827, #111827 55%, #1f2937);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

input[type="text"]::placeholder,
input[type="date"]::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input[type="date"] {
  color: #fbbf24;
  font-weight: 500;
}

/* SELECT STYLING - PENTING */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  padding-right: 36px;
  color: #e5e7eb;
  cursor: pointer;
}

select option {
  background: #1f2937;
  color: #e5e7eb;
  padding: 10px 12px;
  border: none;
}

select option:hover {
  background: #2d3748;
  color: #fbbf24;
}

select option:checked {
  background: linear-gradient(#f97316, #f97316);
  background-color: #f97316;
  color: #111827;
  font-weight: 600;
}

select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .35);
  background: linear-gradient(135deg, #1f2937, #1f2937 55%, #374151),
              url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fef3c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 8px center;
  background-size: auto, 20px;
}

textarea {
  border-radius: 16px;
  min-height: 90px;
  resize: vertical;
  color: var(--text-main);
}

textarea::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .35);
  background: linear-gradient(135deg, #1f2937, #1f2937 55%, #374151);
}

input[type="date"]:focus {
  background: linear-gradient(135deg, #1f2937, #1f2937 55%, #374151);
  color: #fef3c7;
  border-color: var(--accent);
}

/* Radio room */
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid rgba(30, 64, 175, .7);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.radio:hover {
  border-color: var(--accent);
  background: rgba(249, 115, 22, .05);
}

.radio input[type="radio"] {
  accent-color: var(--accent);
}

/* Grid jam */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Box konflik */
.conflict {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  display: none;
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
}

/* ===========================
   BUTTONS
   =========================== */
.actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

button {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #111827;
  box-shadow:
    0 0 0 1px rgba(248, 150, 60, .55),
    0 12px 35px rgba(248, 113, 22, .65);
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(248, 181, 94, .8),
    0 18px 45px rgba(248, 113, 22, .9);
}

button:active {
  transform: translateY(0);
}

.btn.gray {
  background: rgba(15, 23, 42, .95);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, .4);
}

.btn.gray:hover {
  background: #020617;
  border-color: rgba(148, 163, 184, .6);
}

.action-btn {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

/* ===========================
   STATUS / TIMELINE KANAN
   =========================== */
.status-col .card {
  max-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 0;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px 0;
  padding: 0 0 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.status-header h3 {
  margin: 0;
  font-size: 16px;
}

.status-header small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(34, 197, 94, .16);
  color: #bbf7d0;
}

.legend {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 4px;
}

.legend .avail::before {
  background: var(--accent-alt);
}

.legend .partial::before {
  background: #facc15;
}

.legend .full::before {
  background: var(--danger);
}

.status-scroll {
  margin-top: 6px;
  padding-right: 6px;
  overflow-y: auto;
  max-height: 100%;
}

.status-scroll::-webkit-scrollbar {
  width: 6px;
}

.status-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.status-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .3);
  border-radius: 999px;
}

.status-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, .5);
}

.timeline-container {
  margin-top: 12px;
}
/* Room blok */
.room-timeline {
  margin-bottom: 24px;
}

/* Helpers */
.muted {
  color: var(--text-muted);
}

/* ===========================
   TIMELINE BAR
   =========================== */
/* Header jam (08-18) */
.time-header {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.time-header div {
  text-align: center;
  font-size: 11px;
  color: var(--text-soft-strong);
  padding: 2px 0;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(0, 0, 0, .6);
}

/* Track bar */
.timeline-track {
  position: relative;
  height: 32px;
  background: #1f2937;
  border-radius: 16px;
  padding: 4px;
  overflow: hidden;
}

/* Booking bar di atas track */
.booking-bar {
  position: absolute;
  height: 24px;
  top: 4px;
  border-radius: 12px;
  background: var(--accent-alt); /* hijau YayGroup */
  color: #f9fafb;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
}

/* ===========================
   HOVER EFFECTS
   =========================== */

/* Input hover */
input[type="text"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, #1f2937, #1f2937 55%, #2d3748);
}

/* Select hover dengan icon oranye */
select:hover {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, .2);
}

/* Radio hover */
.radio:hover {
  border-color: var(--accent);
  background: rgba(249, 115, 22, .08);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, .15);
}

.radio input[type="radio"]:checked + label {
  color: var(--accent-soft);
}

/* Button hover sudah ada, tapi diperkuat */
button {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #111827;
  box-shadow:
    0 0 0 1px rgba(248, 150, 60, .55),
    0 12px 35px rgba(248, 113, 22, .65);
}

button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px rgba(248, 181, 94, .9),
    0 18px 50px rgba(248, 113, 22, 1);
  background: linear-gradient(90deg, #fb923c, #fbbf24);
}

button:active {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(248, 150, 60, .55),
    0 8px 20px rgba(248, 113, 22, .7);
}

/* Secondary button hover */
.btn.gray:hover {
  background: #1a1f2e;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, .2);
}

/* Card hover effect */
.card {
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, .65),
    0 0 20px rgba(249, 115, 22, .1);
}

/* Status scroll item hover */
.room-timeline:hover {
  opacity: 0.95;
}

/* Booking bar hover */
.booking-bar:hover {
  box-shadow: 
    0 4px 12px rgba(34, 197, 94, .4),
    0 0 8px rgba(34, 197, 94, .6);
  filter: brightness(1.1);
}

/* Link hover */
a:hover {
  color: #fbbf24;
  opacity: 1;
}

/* Chip hover */
.chip:hover {
  background: rgba(34, 197, 94, .25);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .4);
}

/* Timeline track hover */
.timeline-track:hover {
  background: #2d3748;
  box-shadow: inset 0 0 8px rgba(249, 115, 22, .05);
}

/* Label hover */
label:hover {
  color: var(--accent-soft);
  cursor: pointer;
}

/* Text input focus state */
input[type="text"]:focus::placeholder {
  color: transparent;
}

/* Select option hover di Firefox */
select option:hover {
  background: #374151;
  color: #fbbf24;
}

/* Time header hover untuk readability */
.time-header div:hover {
  color: #fbbf24;
  text-shadow: 0 0 4px rgba(249, 115, 22, .4);
}

/* Status header hover */
.status-header:hover {
  border-bottom-color: rgba(249, 115, 22, .2);
}

/* Form elements smooth transition */
input[type="text"],
input[type="date"],
select,
textarea,
.radio,
button,
.btn {
  transition:
    all var(--transition-fast) ease;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */

/* TABLET: 768px ke bawah */
@media (max-width: 768px) {
  :root {
    --radius-lg: 16px;
  }

  .wrap {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 14px 30px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Typography */
  h1 {
    font-size: 22px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  h3 {
    font-size: 16px !important;
  }

  /* Card */
  .card {
    padding: 16px;
    border-radius: 14px;
  }

  .card-header-top {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .card-header-top h1 {
    margin-bottom: 4px;
    font-size: 20px;
  }

  .card-header-top p {
    font-size: 12px;
  }

  /* Form */
  label {
    font-size: 12px;
    margin-top: 12px;
    margin-bottom: 5px;
  }

  input[type="text"],
  input[type="date"],
  select,
  textarea {
    padding: 10px 11px;
    font-size: 14px;
    border-radius: 8px;
  }

  textarea {
    min-height: 85px;
  }

  .grid2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .radio {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* Buttons */
  button,
  .btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
  }

  .actions {
    gap: 8px;
  }

  .action-btn {
    margin-bottom: 10px;
  }

  /* Alert */
  .alert {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .booking-code {
    font-size: 18px;
    margin: 10px 0;
  }

  /* Status column */
  .status-col .card {
    max-height: 480px;
  }

  .status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 12px;
  }

  .status-header h3 {
    font-size: 15px;
  }

  .status-header small {
    font-size: 11px;
  }

  .chip {
    font-size: 10px;
    padding: 4px 9px;
  }

  /* Legend */
  .legend {
    gap: 10px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .legend span::before {
    width: 10px;
    height: 10px;
  }

  /* Timeline */
  .time-header {
    gap: 1px;
  }

  .time-header div {
    font-size: 10px;
    padding: 2px 0;
  }

  .timeline-track {
    height: 30px;
    padding: 3px;
  }

  .booking-bar {
    font-size: 10px;
    height: 22px;
    top: 3px;
    padding: 0 6px;
    border-radius: 10px;
  }

  .room-timeline {
    margin-bottom: 20px;
  }

  .status-scroll {
    max-height: 380px;
    padding-right: 4px;
  }

  .timeline-container {
    margin-top: 10px;
  }

  /* Conflict box */
  .conflict {
    margin-top: 10px;
    padding: 8px 11px;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* MOBILE: 480px ke bawah */
@media (max-width: 480px) {
  :root {
    --radius-lg: 14px;
  }

  .wrap {
    max-width: 100%;
    margin: 14px auto;
    padding: 0 10px 20px;
  }

  /* Typography */
  h1 {
    font-size: 19px !important;
  }

  h2 {
    font-size: 18px !important;
  }

  h3 {
    font-size: 15px !important;
  }

  /* Card */
  .card {
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .7);
  }

  .card-header-top {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
  }

  .card-header-top h1 {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .card-header-top p {
    font-size: 11px;
    line-height: 1.4;
  }

  /* Form */
  label {
    font-size: 11px;
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: 600;
  }

  input[type="text"],
  input[type="date"],
  select,
  textarea {
    padding: 9px 10px;
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 1px;
  }

  textarea {
    min-height: 75px;
    resize: vertical;
  }

  .grid2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .radio {
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 9px;
    margin-top: 6px;
  }

  /* Buttons */
  button,
  .btn {
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 8px;
    min-height: 40px;
  }

  button {
    width: 100%;
    margin-top: 4px;
  }

  .btn.gray {
    width: auto;
  }

  .actions {
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
  }

  .action-btn {
    margin-bottom: 8px;
  }

  .action-btn .btn {
    width: 100%;
  }

  /* Alert */
  .alert {
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 12px;
  }

  .alert-ok h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .alert-ok p {
    font-size: 12px;
    margin: 2px 0;
  }

  .booking-code {
    font-size: 16px;
    margin: 8px 0;
  }

  .alert-err ul {
    padding-left: 18px;
    margin: 0;
  }

  .alert-err li {
    font-size: 12px;
    margin-bottom: 3px;
  }

  /* Status column */
  .status-col .card {
    max-height: 420px;
  }

  .status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 10px;
  }

  .status-header h3 {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .status-header small {
    font-size: 10px;
  }

  .chip {
    font-size: 9px;
    padding: 3px 8px;
  }

  /* Legend */
  .legend {
    gap: 8px;
    font-size: 11px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .legend span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .legend span::before {
    width: 9px;
    height: 9px;
    margin: 0;
  }

  /* Timeline */
  .timeline-container {
    margin-top: 8px;
  }

  .room-timeline {
    margin-bottom: 18px;
    padding: 0;
  }

  .room-timeline > div:first-child {
    margin-bottom: 8px;
  }

  .room-timeline > div:first-child > div:first-child {
    font-size: 13px;
    font-weight: 600;
  }

  .room-timeline > div:first-child > div:last-child {
    font-size: 11px;
  }

  .time-header {
    gap: 0px;
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
  }

  .time-header div {
    font-size: 9px;
    padding: 2px 0;
    font-weight: 500;
  }

  .timeline-track {
    height: 28px;
    padding: 2px;
    border-radius: 14px;
  }

  .booking-bar {
    font-size: 9px;
    height: 20px;
    top: 2px;
    padding: 0 5px;
    border-radius: 8px;
    font-weight: 500;
  }

  .status-scroll {
    max-height: 320px;
    padding-right: 3px;
    margin-top: 4px;
  }

  .status-scroll::-webkit-scrollbar {
    width: 4px;
  }

  /* Conflict box */
  .conflict {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 8px;
  }

  /* Muted text */
  .muted {
    font-size: 11px;
  }
}

/* VERY SMALL: 360px dan di bawah */
@media (max-width: 360px) {
  :root {
    --radius-lg: 12px;
  }

  .wrap {
    max-width: 100%;
    margin: 10px auto;
    padding: 0 8px 16px;
  }

  /* Typography */
  h1 {
    font-size: 17px !important;
  }

  h2 {
    font-size: 16px !important;
  }

  h3 {
    font-size: 14px !important;
  }

  /* Card */
  .card {
    padding: 12px;
    border-radius: 10px;
  }

  .card-header-top {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .card-header-top h1 {
    font-size: 17px;
    margin-bottom: 2px;
  }

  .card-header-top p {
    font-size: 10px;
  }

  /* Form */
  label {
    font-size: 10px;
    margin-top: 8px;
    margin-bottom: 3px;
  }

  input[type="text"],
  input[type="date"],
  select,
  textarea {
    padding: 8px 9px;
    font-size: 12px;
    border-radius: 6px;
  }

  textarea {
    min-height: 65px;
  }

  .radio {
    padding: 8px 9px;
    font-size: 11px;
    border-radius: 8px;
    margin-top: 4px;
  }

  /* Buttons */
  button,
  .btn {
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 6px;
    min-height: 38px;
  }

  .actions {
    margin-top: 12px;
    gap: 4px;
  }

  /* Alert */
  .alert {
    padding: 9px 10px;
    margin-bottom: 10px;
    font-size: 11px;
    border-radius: 8px;
  }

  .booking-code {
    font-size: 15px;
    margin: 6px 0;
  }

  /* Status */
  .status-col .card {
    max-height: 360px;
  }

  .status-header {
    gap: 4px;
    margin-bottom: 6px;
    padding-bottom: 8px;
  }

  .status-header h3 {
    font-size: 13px;
  }

  .status-header small {
    font-size: 9px;
  }

  .chip {
    font-size: 8px;
    padding: 2px 6px;
  }

  /* Legend */
  .legend {
    gap: 6px;
    font-size: 10px;
    margin-bottom: 6px;
  }

  .legend span::before {
    width: 8px;
    height: 8px;
  }

  /* Timeline */
  .room-timeline {
    margin-bottom: 14px;
  }

  .time-header div {
    font-size: 8px;
  }

  .timeline-track {
    height: 24px;
    padding: 1px;
  }

  .booking-bar {
    font-size: 8px;
    height: 18px;
    top: 1px;
    padding: 0 3px;
  }

  .status-scroll {
    max-height: 280px;
    padding-right: 2px;
  }

  .status-scroll::-webkit-scrollbar {
    width: 3px;
  }

  .muted {
    font-size: 10px;
  }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  button,
  .btn,
  .radio,
  a
 {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Remove hover effects on touch devices */
  button:hover, .btn:hover {
    transform: none;
  }

  .radio:hover {
    background: rgba(249, 115, 22, .05);
  }

  /* Slightly larger tap targets */
  input[type="date"] {
    padding: 10px 11px;
  }

  select {
    padding: 10px 11px;
    padding-right: 36px;
  }
}

/* Landscape orientation adjustment */
@media (max-height: 600px) and (orientation: landscape) {
  .wrap {
    margin: 12px auto;
    padding: 0 12px 20px;
  }

  .card {
    padding: 12px;
  }

  .status-scroll {
    max-height: 300px;
  }

  .status-col .card {
    max-height: 400px;
  }
}

