/* Workpod design system — ported from workpod-admin-v1-ts / workpod-website-v1-ts
   tailwind.config.ts + globals.css. Plain CSS custom properties + utility
   classes since this project has no JS bundler/Tailwind build step. */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  /* Brand */
  --color-primary: #ffa800;
  --color-primary-hover: #e69700;
  --color-primary-light: #fff5d9;
  --color-secondary: #18a1de;
  --color-secondary-hover: #1381b2;
  --color-blue-2: #307fff;
  --color-dark: #2d3539;
  --color-black: #000000;
  --color-heading: #4a4a4a;

  /* Neutrals */
  --color-bg: #f9f9f9;
  --color-bg-2: #f0fcff;
  --color-surface: #ffffff;
  --color-border: #d9d9d9;
  --color-border-light: #f2f2f2;
  --color-muted: #8f939f;
  --color-text: #1f2328;

  /* Semantic */
  --color-success: #08aa1e;
  --color-success-light: #e5fce8;
  --color-warning: #ed7104;
  --color-warning-light: #fff4e0;
  --color-error: #db1414;
  --color-error-hover: #c31313;
  --color-error-light: #fce8e8;
  --color-info: #18a1de;
  --color-info-light: #e5f6fd;

  /* Shape — bento-style rounding: more generous radii read as "current"
     without abandoning the brand's actual 8px card baseline everywhere. */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 100px;

  /* Elevation scale (dimensional-layering: depth communicates hierarchy,
     not just borders) */
  --shadow-card: 0 1px 2px rgba(20, 20, 30, 0.04), 0 1px 1px rgba(20, 20, 30, 0.03);
  --shadow-1: 0 1px 2px rgba(20, 20, 30, 0.06);
  --shadow-2: 0 6px 16px -4px rgba(20, 20, 30, 0.1);
  --shadow-3: 0 16px 32px -8px rgba(20, 20, 30, 0.14);
  --shadow-glow: 0 6px 20px -4px rgba(255, 168, 0, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-focus: 0 0 0 3px rgba(255, 168, 0, 0.35);

  /* Brand gradients — the real tokens from workpod-website-v1-ts's
     globals.css (--gradient-primary-button / --gradient-accent-cool),
     not invented colors. */
  --gradient-primary: linear-gradient(135deg, #ffa800 0%, #ed7104 100%);
  --gradient-cool: linear-gradient(135deg, #18a1de 0%, #307fff 100%);
  --gradient-page: linear-gradient(160deg, #f9f9f9 0%, #f0fcff 100%);
  --gradient-sidebar: linear-gradient(180deg, #323b40 0%, #21272a 100%);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 220ms;

  /* Layout */
  --sidebar-width: 248px;
  --topbar-height: 64px;

  --font-sans:
    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--gradient-page);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.375rem;
}
h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout shell ---------- */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--gradient-sidebar);
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  box-shadow: var(--shadow-3);
  transition: transform var(--duration-normal) var(--ease-out);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 24px;
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
}

.sidebar-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #d9dde0;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

.sidebar-link.active {
  background: var(--gradient-primary);
  border-left-color: #ffffff;
  color: var(--color-black);
  box-shadow: var(--shadow-1);
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-user {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #d9dde0;
}

.sidebar-user form {
  margin-top: 8px;
}

.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 217, 217, 0.5);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-title {
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.05rem;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.content {
  padding: 28px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .app-shell.nav-open .sidebar {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: inline-flex;
  }
}

.site-footer {
  margin-top: auto;
  padding: 18px 28px;
  border-top: 1px solid var(--color-border-light);
  color: var(--color-muted);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.site-footer strong {
  color: var(--color-heading);
}

.site-footer-contact::before {
  content: "\2022";
  margin-right: 12px;
}

@media (max-width: 640px) {
  .site-footer-contact::before {
    content: "";
    margin-right: 0;
    display: block;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  line-height: 1;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled,
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--color-black);
  box-shadow: var(--shadow-1);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-black);
  text-decoration: none;
}

.btn-danger {
  background: transparent;
  border-color: var(--color-error);
  color: var(--color-error);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-danger:hover:not(:disabled) {
  background: var(--color-error);
  color: #ffffff;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-2) 100%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

/* ---------- Stat cards ---------- */

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  box-shadow: var(--shadow-1);
  flex-shrink: 0;
}

/* Category-tinted icon variants — same idea as .badge-*, applied to the
   52px icon chip so a stat card's subject reads at a glance (bookings vs.
   space/people vs. money vs. something-needs-attention) instead of every
   card wearing the same amber gradient regardless of meaning. Real brand
   tokens only (gradient-cool + the existing semantic light/dark pairs),
   nothing invented. */
.stat-icon-cool {
  background: var(--gradient-cool);
  color: #ffffff;
}

.stat-icon-success {
  background: var(--color-success-light);
  color: var(--color-success);
  box-shadow: none;
}

.stat-icon-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
  box-shadow: none;
}

.stat-icon-error {
  background: var(--color-error-light);
  color: var(--color-error);
  box-shadow: none;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-black);
  font-variant-numeric: tabular-nums;
}

/* ---------- Avatars (logo or initials fallback — company/user profile headers, list thumbnails) ---------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cool);
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  box-shadow: var(--shadow-2);
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
}

.stat-card .stat-label {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* ---------- Section headers (icon chip + title, dashboard feed cards) ---------- */

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-header h3 {
  margin: 0;
}

.section-header .section-subtitle {
  margin: 2px 0 0;
  font-size: 0.85rem;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 18px;
  height: 18px;
}

.section-icon-cool {
  background: var(--gradient-cool);
  color: #ffffff;
}

.section-icon-primary {
  background: var(--gradient-primary);
  color: var(--color-black);
}

.section-icon-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.section-icon-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.section-icon-error {
  background: var(--color-error-light);
  color: var(--color-error);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge-error {
  background: var(--color-error-light);
  color: var(--color-error);
}

.badge-neutral {
  background: var(--color-border-light);
  color: var(--color-muted);
}

.amount-positive {
  color: var(--color-success);
  font-weight: 600;
}

.amount-negative {
  color: var(--color-error);
  font-weight: 600;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

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

table.table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--color-bg);
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--color-border);
}

table.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  transition: background var(--duration-fast) var(--ease-out);
}

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

table.table tbody tr:hover td {
  background: var(--color-bg);
}

/* Feed-row emphasis (dashboard "needs attention" tables) — a light tint on
   the whole row so an overdue complaint or a flagged booking reads as an
   alert at a glance, not just via the badge in one cell. */
table.table tr.row-alert-warning td {
  background: var(--color-warning-light);
}

table.table tr.row-alert-error td {
  background: var(--color-error-light);
}

table.table tr.row-alert-warning:hover td {
  background: var(--color-warning-light);
  filter: brightness(0.98);
}

table.table tr.row-alert-error:hover td {
  background: var(--color-error-light);
  filter: brightness(0.98);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-muted);
}

.empty-state-ok {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-state-ok svg {
  color: var(--color-success);
}

/* ---------- Search + pagination ---------- */

.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-box-input {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
}

.search-box-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.list-toolbar .search-box {
  flex: 1;
  min-width: 240px;
  margin-bottom: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.pagination .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Forms ---------- */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field input[type="datetime-local"],
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.field .helptext {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 4px;
}

.field ul.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: var(--color-error);
  font-size: 0.8rem;
}

.checkbox-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-text);
  cursor: pointer;
}

.checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.form-errors {
  background: var(--color-error-light);
  color: var(--color-error);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

/* ---------- Toasts (Django messages) ---------- */

.toasts {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
}

.toast.success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.toast.error {
  background: var(--color-error-light);
  color: var(--color-error);
}

.toast.warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.toast.info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.badge-info {
  background: var(--color-info-light);
  color: var(--color-info);
}

/* ---------- Room cards ---------- */

.room-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.room-card h3 {
  margin: 0;
}

.room-card .room-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.room-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.room-card-top h3 {
  flex: 1;
  min-width: 0;
}

.room-info-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-heading);
}

.room-info-list svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-muted);
}

.room-card .room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.cost-badge {
  font-weight: 700;
  color: var(--color-secondary-hover);
}

.room-card-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: -4px -4px 4px;
  display: block;
}

.room-photo-lg {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* ---------- Calendar widget ---------- */

.wp-calendar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  max-width: 340px;
}

.wp-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--color-heading);
}

.wp-calendar-nav {
  display: flex;
  gap: 4px;
}

.wp-calendar-nav button {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-heading);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.wp-calendar-nav button:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.wp-calendar-nav button:active {
  transform: scale(0.92);
}

.wp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  animation: wp-calendar-fade var(--duration-normal) var(--ease-out);
}

@keyframes wp-calendar-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wp-calendar-grid .dow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-muted);
  padding-bottom: 4px;
}

.wp-calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid transparent;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.wp-calendar-day.is-empty {
  visibility: hidden;
  cursor: default;
}

.wp-calendar-day.is-past,
.wp-calendar-day:disabled {
  color: var(--color-border);
  cursor: not-allowed;
}

.wp-calendar-day.is-busy {
  background: var(--color-error-light);
  color: var(--color-error);
  font-weight: 600;
}

.wp-calendar-day.is-today {
  border-color: var(--color-secondary);
  font-weight: 700;
}

.wp-calendar-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-secondary);
  transform: translateX(-50%);
}

.wp-calendar-day.is-selected {
  background: var(--gradient-primary);
  color: var(--color-black);
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  transform: scale(1.06);
}

.wp-calendar-day.is-selected::after {
  background: var(--color-black);
}

.wp-calendar-day:not(.is-past):not(.is-empty):not(:disabled):hover {
  background: var(--color-primary-light);
  transform: scale(1.08);
}

.wp-calendar-legend {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.wp-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wp-calendar-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-busy {
  background: var(--color-error);
}

.dot-selected {
  background: var(--color-primary);
}

/* ---------- Booking calendar column (sticky, fills the viewport) ---------- */

.booking-calendar-column {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-height) - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-calendar-column > .card {
  flex-shrink: 0;
}

.booking-calendar-column .wp-day-schedule {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 720px) {
  .booking-calendar-column {
    position: static;
    max-height: none;
  }
}

/* ---------- Day-schedule slot grid ---------- */

.wp-day-schedule {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}

.wp-day-schedule h4 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--color-heading);
  flex-shrink: 0;
}

.wp-day-grid {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
}

.wp-day-slot {
  flex-shrink: 0;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.wp-day-slot.is-hour {
  font-weight: 700;
  border-top-color: var(--color-border);
}

.wp-day-slot:not(.is-busy):not(.is-past):hover {
  background: var(--color-primary-light);
  transform: translateX(2px);
}

.wp-day-slot.is-busy {
  background: var(--color-error-light);
  color: var(--color-error);
  cursor: not-allowed;
}

.wp-day-slot.is-past {
  color: var(--color-border);
  cursor: not-allowed;
}

.wp-day-slot.is-selected {
  background: var(--gradient-primary);
  color: var(--color-black);
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.wp-day-schedule-hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  flex-shrink: 0;
}

.wp-day-schedule-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 12px;
  color: var(--color-muted);
  text-align: center;
  flex: 1;
}

#day-schedule {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.wp-day-schedule-empty p {
  margin: 0;
  font-size: 0.82rem;
}

/* ---------- Step badges (booking-page section headers) ---------- */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-black);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------- Booking summary ---------- */

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.88rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span {
  color: var(--color-muted);
}

.summary-row strong {
  color: var(--color-heading);
  text-align: right;
}

.summary-row.summary-cost {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  border-bottom: none;
}

.summary-row.summary-cost span {
  color: var(--color-heading);
  font-weight: 600;
}

.summary-row.summary-cost strong {
  font-size: 1.15rem;
  color: var(--color-secondary-hover);
}

/* ---------- Utility ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.text-muted {
  color: var(--color-muted);
}

.mt-0 {
  margin-top: 0;
}

/* ---------- Notification bell + dropdown ---------- */

.notif-bell-wrap {
  position: relative;
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: none;
  color: var(--color-heading);
  cursor: pointer;
  transition: background var(--duration-normal, 0.15s) var(--ease-out, ease);
}

.notif-bell:hover {
  background: var(--color-border-light);
}

.notif-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--color-error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  z-index: 50;
  overflow: hidden;
}

.notif-bell-wrap.is-open .notif-panel {
  display: block;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.notif-mark-all:hover {
  text-decoration: underline;
}

.notif-panel-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item-form {
  margin: 0;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.notif-item:hover {
  background: var(--color-bg);
}

.notif-item.is-unread {
  background: var(--color-info-light);
}

.notif-item.is-unread:hover {
  background: var(--color-info-light);
  filter: brightness(0.98);
}

.notif-item-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--color-info);
}

.notif-item-success .notif-item-dot {
  background: var(--color-success);
}

.notif-item-warning .notif-item-dot {
  background: var(--color-warning);
}

.notif-item-error .notif-item-dot {
  background: var(--color-error);
}

.notif-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notif-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}

.notif-item-message {
  font-size: 0.8rem;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item-time {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.notif-panel-footer {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-secondary);
  border-top: 1px solid var(--color-border-light);
}

.notif-panel-footer:hover {
  background: var(--color-bg);
}

/* ---------- Notification list page ---------- */

.notif-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.notif-page-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-page-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-left: 4px solid var(--color-info);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.notif-page-item.notif-item-success {
  border-left-color: var(--color-success);
}

.notif-page-item.notif-item-warning {
  border-left-color: var(--color-warning);
}

.notif-page-item.notif-item-error {
  border-left-color: var(--color-error);
}

.notif-page-item.is-unread {
  background: var(--color-info-light);
}

.notif-page-item-main {
  min-width: 0;
}

.notif-page-item-title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.notif-page-item-message {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.notif-page-item-time {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.notif-page-item-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
