:root { font-family: Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #f6f7f9; color: #111; overflow-x: hidden; }
label { display:block; font-size: 12px; color:#444; margin-bottom:6px; }
input, select, button, textarea { width:100%; padding:10px; border:1px solid #d7dbe0; border-radius:8px; box-sizing:border-box; }
button { background:#0b2a4a; color:#fff; border:none; cursor:pointer; }
button.secondary { background:#e9eef5; color:#0b2a4a; }
button:disabled { opacity:.6; cursor:not-allowed; }
.card { background:#fff; border-radius: 10px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 12px; }
.row { display:flex; gap:12px; flex-wrap:wrap; }
.row > * { flex: 1; min-width: 220px; }
.muted { color:#6b7280; font-size: 12px; }
.badge { display:inline-block; padding:3px 8px; border-radius:999px; font-size:12px; background:#e9eef5; color:#0b2a4a; }
.hidden { display: none !important; }

:root {
  --header-gradient-dark: radial-gradient(circle at center, #0b3f8a 0%, #081a34 100%);
}

body.darkmode { background: #111827; color: #e5e7eb; }

:root {
  --primary: #2563eb;
  --surface-glass: rgba(255, 255, 255, 0.12);
  --surface-glass-hover: rgba(255, 255, 255, 0.24);
  --header-gradient-dark: radial-gradient(circle at center, #0b3f8a 0%, #081a34 100%);
}

body.darkmode {
  background: #111827;
  color: #e5e7eb;
}

.topbar-modern {
  min-height: 90px;
  padding: 10px 24px;
  background: var(--header-gradient-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand { font-size: 30px; font-weight: 700; color: #fff; }
.calendar-toolbar { display: inline-flex; gap: 8px; }
.topbar-modern h1 { margin: 0; justify-self: center; color: #fff; font-size: clamp(24px, 3vw, 38px); text-transform: capitalize; }
.dashboard-main { max-width: 1560px; margin: 0 auto; padding: 18px 24px 16px; }
.brand {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

.calendar-toolbar {
  display: inline-flex;
  gap: 8px;
}

.topbar-modern h1 {
  margin: 0;
  justify-self: center;
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
}

.dashboard-main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 24px 16px;
}

body.darkmode .card,
body.darkmode input,
body.darkmode button.secondary {
  background: #1f2937;
  color: #e5e7eb;
  border-color: #374151;
}

.booking-card h2 { margin: 0; }
.action-area { display: flex; align-items: end; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.booking-card h2 {
  margin-top: 0;
}

.action-area {
  display: flex;
  align-items: end;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

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

.day-name {
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid #d1d5db;
}

body.darkmode .day-name { border-color: #374151; color: #9ca3af; background: #111827; }
.day-cell { min-height: 150px; border-radius: 10px; border: 1px solid #d1d5db; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
body.darkmode .day-cell { border-color: #374151; background: #0f172a; }
.day-cell.other-month { opacity: .4; }
.day-number { font-size: 13px; color: #94a3b8; text-align: right; }

.booking-item { border-radius: 8px; padding: 8px; color: #fff; cursor: pointer; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
.booking-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.booking-meta { font-size: 12px; line-height: 1.3; opacity: .95; }
body.darkmode .day-name {
  border-color: #374151;
  color: #9ca3af;
  background: #111827;
}

.day-cell {
  min-height: 150px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}

body.darkmode .day-cell {
  border-color: #374151;
  background: #0f172a;
}

.day-cell.other-month {
  opacity: .4;
}

.day-number {
  font-size: 13px;
  color: #94a3b8;
  text-align: right;
}

.booking-item {
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

.booking-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.booking-meta {
  font-size: 12px;
  line-height: 1.3;
  opacity: .95;
}

@media (max-width: 900px) {
  .topbar-modern { grid-template-columns: 1fr; }
  .topbar-modern h1 { justify-self: start; }
}

@media (max-width: 768px) {
  .dashboard-main { padding: 12px; }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .day-cell { min-height: 100px; }
}
