body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1115;
  color: #f5f6fa;
}

a {
  color: #f7a8ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #151822;
  border-bottom: 1px solid #2a2f3c;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
}

.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-pill {
  background: #262a38;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.page-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer {
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: #8b90a0;
  border-top: 1px solid #2a2f3c;
  margin-top: 20px;
}

.card {
  background: #181b26;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

h1, h2, h3 {
  margin: 0 0 10px;
}

.muted {
  color: #9ca3b8;
}

.small {
  font-size: 0.85rem;
}

.btn-primary,
.btn-small,
.btn-tiny,
.btn-ghost {
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f38bff, #a66bff);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.btn-small {
  background: #262a38;
  color: #f5f6fa;
  padding: 6px 12px;
  border-radius: 999px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #3a3f52;
}

.btn-tiny {
  padding: 3px 8px;
  border-radius: 999px;
}

.btn-small:hover,
.btn-primary:hover,
.btn-tiny:hover {
  filter: brightness(1.1);
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  max-width: 400px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.form-row label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.form-row .grow {
  flex: 1;
}

input[type="text"],
input[type="time"],
select {
  background: #11141e;
  border: 1px solid #2c3143;
  border-radius: 8px;
  padding: 6px 8px;
  color: #f5f6fa;
}

input:focus,
select:focus {
  outline: none;
  border-color: #f38bff;
}

.filters-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filters-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.alert {
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.alert-error {
  background: #3b1118;
  border: 1px solid #ff4b6a;
  color: #ffb0c0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}

.calendar-column {
  background: #11141e;
  border-radius: 10px;
  padding: 8px;
  min-width: 150px;
}

.calendar-column h2,
.calendar-column h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-item {
  background: #1e2230;
  border-radius: 8px;
  padding: 6px 8px;
}

.slot-time {
  font-weight: 600;
  font-size: 0.9rem;
}

.slot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 2px;
  font-size: 0.8rem;
}

.slot-user {
  font-weight: 500;
}

.slot-notes {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #cbd1e1;
}

.pill {
  border-radius: 999px;
  padding: 2px 8px;
  background: #383f59;
  font-size: 0.75rem;
}

.pill-soft {
  background: #332238;
  color: #f5c8ff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 6px 8px;
  border-bottom: 1px solid #272a36;
  text-align: left;
}

.table th {
  color: #cbd1e1;
  font-weight: 600;
}
.holiday-strip {
  margin-bottom: 12px;
}

.holiday-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.holiday-pill {
  background: #252033;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.section-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3b8;
}

.slot-recurring {
  border-left: 3px solid #f38bff;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.admin-section {
  background: #11141e;
  border-radius: 10px;
  padding: 12px;
}
.view-tabs {
  display: inline-flex;
  border-radius: 999px;
  background: #11141e;
  padding: 3px;
  gap: 3px;
  margin-bottom: 6px;
}

.view-tab {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #cbd1e1;
}

.view-tab.active {
  background: #f38bff22;
  color: #fff;
  font-weight: 600;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.nav-title h2 {
  margin: 0;
}

.holiday-strip {
  margin-bottom: 12px;
}

.holiday-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.holiday-pill {
  background: #252033;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.section-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3b8;
}

.slot-recurring {
  border-left: 3px solid #f38bff;
}

/* Month view grid */

.month-header-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: 0.8rem;
  text-align: center;
  color: #9ca3b8;
  margin-top: 8px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.month-cell {
  min-height: 90px;
  background: #11141e;
  border-radius: 8px;
  padding: 4px 5px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.month-cell-empty {
  background: transparent;
}

.month-date {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.month-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.7rem;
  background: #262a38;
}

.month-holiday {
  color: #ffd2e1;
}

.tiny {
  font-size: 0.7rem;
}
.pill-available {
  background: #1f4f2f;
  color: #b4ffd0;
}

.pill-busy {
  background: #4f1f2f;
  color: #ffd0d6;
}
