/* ============================================================
   GOOGLE FONTS
   ============================================================ */
/* ============================================================
   LOCAL FONTS
   ============================================================ */
@font-face {
  font-family : 'Great Vibes';
  src         : url('fonts/great-vibes-v21-latin-regular.woff2') format('woff2');
  font-weight : 400;
  font-style  : normal;
  font-display: swap;
}

/* --- Fallback font sized to match Great Vibes to minimize CLS --- */
@font-face {
  font-family     : 'Great Vibes Fallback';
  src             : local('Georgia'), local('Times New Roman');
  size-adjust     : 165%;
  ascent-override : 75%;
  descent-override: 20%;
}

@font-face {
  font-family : 'Playfair Display';
  src         : url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
  font-weight : 400;
  font-style  : normal;
  font-display: swap;
}

@font-face {
  font-family : 'Playfair Display';
  src         : url('fonts/playfair-display-v40-latin-500.woff2') format('woff2');
  font-weight : 500;
  font-style  : normal;
  font-display: swap;
}

@font-face {
  font-family : 'Playfair Display';
  src         : url('fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
  font-weight : 400;
  font-style  : italic;
  font-display: swap;
}

@font-face {
  font-family : 'Playfair Display';
  src         : url('fonts/playfair-display-v40-latin-500italic.woff2') format('woff2');
  font-weight : 500;
  font-style  : italic;
  font-display: swap;
}

@font-face {
  font-family : 'Inter';
  src         : url('fonts/inter-v20-latin-300.woff2') format('woff2');
  font-weight : 300;
  font-style  : normal;
  font-display: swap;
}

@font-face {
  font-family : 'Inter';
  src         : url('fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight : 400;
  font-style  : normal;
  font-display: swap;
}

@font-face {
  font-family : 'Inter';
  src         : url('fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight : 500;
  font-style  : normal;
  font-display: swap;
}

/* ============================================================
   TOKENS: WARM (default)
   ============================================================ */
:root {
  --bg           : #faf5f3;
  --surface      : #ffffff;
  --surface-2    : #F2E6E2;
  --border       : #e4d0ca;
  --border-strong: #c4a098;
  --text         : #3D2B24;
  --text-2       : #6b4c42;
  --muted        : #a07d73;
  --brand        : #A06A5A;
  --brand-dark   : #855447;
  --brand-subtle : #f7efed;
  --purple       : #A8B5A2;
  --success      : #4a7a5a;
  --error        : #c0392b;
  --shadow-sm    : 0 1px 3px rgba(160, 106, 90, 0.08), 0 0 0 1px rgba(160, 106, 90, 0.04);
  --shadow-md    : 0 4px 16px rgba(160, 106, 90, 0.10), 0 1px 4px rgba(160, 106, 90, 0.06);
  --shadow-lg    : 0 12px 40px rgba(160, 106, 90, 0.12), 0 2px 8px rgba(160, 106, 90, 0.06);
  --glow         : none;
}

/* ============================================================
   THEME BAR
   ============================================================ */
/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family            : 'Inter', sans-serif;
  background             : var(--bg);
  color                  : var(--text);
  min-height             : 100vh;
  overflow-x             : hidden;
  -webkit-font-smoothing : antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 860px;
  margin   : 0 auto;
  padding  : 40px 20px 80px;
  position : relative;
  z-index  : 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  text-align   : center;
  margin-bottom: 48px;
  min-height   : 220px;
  animation    : fadeUp 0.6s ease both;
}

.header-eyebrow {
  font-size     : 11px;
  font-weight   : 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color         : var(--muted);
  margin-bottom : 12px;
  transition    : color 0.3s;
}



.header-logo {
  width     : 280px;
  max-width : 80%;
  height    : auto;
  display   : block;
  margin    : 0 auto 4px;
  transition: filter 0.45s;
}



.header h1 {
  font-family  : 'Great Vibes', 'Great Vibes Fallback', cursive;
  font-size    : clamp(2.8rem, 7vw, 4.2rem);
  font-weight  : 400;
  line-height  : 1.2;
  margin-bottom: 6px;
  min-height   : 1.2em;
  color        : var(--text);
  transition   : color 0.3s;
}

.header h1 em {
  font-style: normal;
  color     : var(--brand);
}

.header-logo-link,
.header-logo-link:link,
.header-logo-link:visited,
.header-logo-link:hover,
.header-logo-link:active,
.header-logo-link:focus {
  text-decoration: none;
  color          : inherit;
  cursor         : pointer;
  outline        : none;
}

.header-logo-link em,
.header-logo-link:link em,
.header-logo-link:visited em,
.header-logo-link:hover em,
.header-logo-link:active em {
  color: var(--brand);
}

.divider {
  width     : 40px;
  height    : 1px;
  background: var(--border);
  margin    : 16px auto;
  transition: background 0.35s;
}

.header-sub {
  font-size     : 13px;
  color         : var(--text-2);
  font-weight   : 300;
  letter-spacing: 0.04em;
  transition    : color 0.3s;
}


/* ============================================================
   BACK LINK — return to about site
   ============================================================ */
.back-link {
  display      : inline-block;
  font-size    : 11px;
  font-weight  : 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color        : var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
  transition   : color 0.25s;
}

.back-link:hover { color: var(--brand); }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-size     : 11px;
  font-weight   : 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color         : var(--muted);
  margin-bottom : 20px;
  transition    : color 0.3s;
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.skeleton {
  border-radius: 4px;
  background   : linear-gradient(90deg,
      var(--surface-2) 25%,
      var(--border) 50%,
      var(--surface-2) 75%);
  background-size: 600px 100%;
  animation      : shimmer 1.6s infinite linear;
}

.skeleton-week-header {
  height       : 12px;
  width        : 180px;
  margin-bottom: 10px;
}

.skeleton-day-name {
  height: 10px;
  width : 30px;
  margin: 0 auto 6px;
}

.skeleton-day-num {
  height: 20px;
  width : 24px;
  margin: 0 auto 4px;
}

.skeleton-day-month {
  height: 10px;
  width : 20px;
  margin: 0 auto 15px;
}

.skeleton-slot {
  height       : 44px;
  width        : 100%;
  border-radius: 4px;
}

/* ============================================================
   LOADING / EMPTY
   ============================================================ */
.loading-state {
  text-align    : center;
  padding       : 48px 0;
  color         : var(--muted);
  font-size     : 13px;
  letter-spacing: 0.08em;
  animation     : pulse 1.5s ease infinite;
}

.empty-state {
  text-align   : center;
  padding      : 40px 24px;
  background   : var(--surface);
  border       : 1.5px solid var(--border);
  border-radius: 5px;
  color        : var(--muted);
  font-size    : 14px;
  font-weight  : 300;
  transition   : background 0.35s, border-color 0.35s, color 0.3s;
}

/* ============================================================
   WEEK BLOCK
   ============================================================ */
.week-block {
  margin-bottom: 28px;
  animation    : fadeUp 0.5s ease both;
}

.week-header {
  font-size     : 11px;
  font-weight   : 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color         : var(--muted);
  margin-bottom : 10px;
  padding-left  : 2px;
  transition    : color 0.3s;
}

/* ============================================================
   CALENDAR GRID
   ============================================================ */
.calendar-grid {
  display              : grid;
  grid-template-columns: repeat(6, 1fr);
  gap                  : 10px;
  background           : var(--surface);
  border               : 1.5px solid var(--border);
  border-radius: 5px;
  padding              : 16px;
  box-shadow           : var(--shadow-sm);
  transition           : background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

/* ============================================================
   DAY CELL
   ============================================================ */
.day-cell {
  display       : flex;
  flex-direction: column;
  align-items   : center;
  border-radius: 4px;
  padding       : 12px 8px;
  min-height    : 110px;
}

.day-cell.has-slots {
  border    : 1.5px solid var(--border);
  transition: border-color 0.35s, background 0.35s;
}

.day-cell.empty {
  border : 1.5px dashed var(--border);
  opacity: 0.5;
}

.day-info {
  text-align   : center;
  margin-bottom: 15px;
  width        : 100%;
}

.day-name {
  font-size     : 10px;
  font-weight   : 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color         : var(--muted);
  transition    : color 0.3s;
}

.day-date-num {
  font-family: 'Playfair Display', serif;
  font-size  : 1.4rem;
  font-weight: 400;
  color      : var(--text);
  line-height: 1.1;
  transition : color 0.3s;
}

.day-month {
  font-size  : 11px;
  color      : var(--text-2);
  font-weight: 400;
  transition : color 0.3s;
}

/* ============================================================
   SLOT BUTTONS
   ============================================================ */
.slot-btn {
  width        : 100%;
  margin-bottom: 8px;
  padding      : 9px 4px;
  border-radius: 4px;
  border       : 1.5px solid var(--border);
  background   : var(--surface);
  cursor       : pointer;
  text-align   : center;
  transition   : all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family  : 'Inter', sans-serif;
}

.slot-btn:last-child {
  margin-bottom: 0;
}

.slot-btn.available:hover {
  border-color: var(--brand);
  background  : var(--brand-subtle);
  transform   : translateY(-1px);
  box-shadow  : var(--shadow-sm);
}

.slot-btn.selected {
  border-color: var(--brand);
  border-width: 2px;
  background  : var(--brand-subtle);
  box-shadow  : 0 0 0 3px rgba(160, 106, 90, 0.25);
  transform   : translateY(-1px);
}

/* --- Dark theme selected gets brighter glow --- */


.slot-btn.booked {
  opacity   : 0.45;
  cursor    : not-allowed;
  background: var(--surface-2);
}

.slot-time-label {
  font-size  : 12px;
  font-weight: 600;
  color      : var(--text);
  display    : block;
  line-height: 1.3;
  transition : color 0.3s;
}

.slot-btn.selected .slot-time-label {
  color: var(--brand);
}

.slot-btn.booked .slot-time-label {
  color: var(--muted);
}

.slot-status-label {
  font-size     : 9px;
  font-weight   : 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display       : block;
  line-height   : 1.3;
  transition    : color 0.3s;
}

.slot-btn.available .slot-status-label {
  color: var(--success);
}

.slot-btn.selected .slot-status-label {
  color: var(--brand);
}

.slot-btn.booked .slot-status-label {
  color: var(--muted);
}

/* --- Dark theme: boost booked slot text contrast --- */


/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-form {
  background   : var(--surface);
  border       : 1.5px solid var(--border);
  border-radius: 5px;
  padding      : 28px 24px;
  margin-top   : 8px;
  margin-bottom: 16px;
  box-shadow   : var(--shadow-md);
  animation    : fadeUp 0.4s ease both;
  transition   : background 0.35s, border-color 0.35s, box-shadow 0.35s;
  overflow     : hidden;
  width        : 100%;
  box-sizing   : border-box;
}

.form-title {
  font-family  : 'Playfair Display', serif;
  font-size    : 1.3rem;
  font-weight  : 400;
  margin-bottom: 4px;
  color        : var(--text);
  transition   : color 0.3s;
}

.form-subtitle {
  font-size    : 12px;
  color        : var(--muted);
  font-weight  : 300;
  margin-bottom: 20px;
  transition   : color 0.3s;
}

.selected-slot-info {
  background   : var(--brand-subtle);
  border       : 1px solid rgba(124, 107, 158, 0.2);
  border-radius: 5px;
  padding      : 10px 14px;
  font-size    : 13px;
  color        : var(--brand);
  font-weight  : 500;
  margin-bottom: 20px;
  transition   : background 0.35s, color 0.3s;
}

.fields-row {
  display              : grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap                  : 16px;
  margin-bottom        : 20px;
}

.field label {
  display       : flex;
  align-items   : center;
  gap           : 6px;
  font-size     : 11px;
  font-weight   : 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color         : var(--muted);
  margin-bottom : 7px;
  transition    : color 0.3s;
}

.field input {
  width        : 100%;
  padding      : 11px 14px;
  border       : 1.5px solid var(--border-strong);
  border-radius: 5px;
  font-family  : 'Inter', sans-serif;
  font-size    : 14px;
  font-weight  : 300;
  color        : var(--text);
  background   : var(--surface);
  outline      : none;
  transition   : border-color 0.2s, background 0.35s, color 0.3s;
  width        : 100%;
  box-sizing   : border-box;
}

.field input:focus {
  border-color: var(--brand);
  background  : var(--surface);
}

/* ============================================================
   RADIO GROUP — TIPO DE ATENDIMENTO
   ============================================================ */
.field-label-block {
  display       : block;
  font-size     : 11px;
  font-weight   : 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color         : var(--muted);
  margin-bottom : 10px;
  transition    : color 0.3s;
}

.radio-group {
  display  : flex;
  gap      : 10px;
  flex-wrap: wrap;
}

.radio-option {
  display      : flex;
  align-items  : center;
  gap          : 8px;
  padding      : 10px 16px;
  border       : 1.5px solid var(--border);
  border-radius: 4px;
  cursor       : pointer;
  transition   : all 0.2s;
  background   : var(--surface);
  flex         : 1;
  min-width    : 140px;
}

.radio-option:hover {
  border-color: var(--brand);
  background  : var(--brand-subtle);
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option:has(input:checked) {
  border-color: var(--brand);
  background  : var(--brand-subtle);
  box-shadow  : 0 0 0 3px rgba(160, 106, 90, 0.2);
}



.radio-icon {
  display     : inline-flex;
  align-items : center;
  justify-content: center;
  flex-shrink : 0;
  width       : 18px;
  height      : 18px;
}

.radio-label {
  font-size  : 13px;
  font-weight: 400;
  color      : var(--text-2);
  transition : color 0.3s;
  line-height: 1;
}

.radio-icon svg {
  width : 16px;
  height: 16px;
  stroke: var(--muted);
  fill  : none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.radio-option:has(input:checked) .radio-icon svg {
  stroke: var(--brand);
}

.radio-option:has(input:checked) .radio-label {
  color      : var(--brand);
  font-weight: 500;
}

@media (max-width: 640px) {
  .radio-group {
    flex-direction: column;
  }

  .radio-option {
    min-width: unset;
  }
}

.field input::placeholder {
  color  : var(--muted);
  opacity: 0.6;
}

.required {
  color      : var(--error);
  font-weight: 500;
  margin-left: 2px;
}

.optional {
  color         : var(--muted);
  font-weight   : 300;
  font-size     : 10px;
  letter-spacing: 0.05em;
  text-transform: none;
  margin-left   : 3px;
  opacity       : 0.8;
}

.field-full {
  margin-bottom: 16px;
}

.field-full textarea {
  width        : 100%;
  padding      : 11px 14px;
  border       : 1.5px solid var(--border-strong);
  border-radius: 5px;
  font-family  : 'Inter', sans-serif;
  font-size    : 14px;
  font-weight  : 300;
  color        : var(--text);
  background   : var(--surface);
  outline      : none;
  resize       : none;
  box-sizing   : border-box;
  min-height   : 80px;
  transition   : border-color 0.2s, background 0.35s, color 0.3s;
  line-height  : 1.5;
}

.field-full textarea:focus {
  border-color: var(--brand);
  background  : var(--surface);
}

.field-full textarea::placeholder {
  color  : var(--muted);
  opacity: 0.6;
}

.field input.invalid {
  border-color: var(--error);
  background  : rgba(192, 57, 43, 0.05);
}

.field input.valid {
  border-color: var(--success);
}

.field-error {
  font-size  : 11px;
  color      : var(--error);
  margin-top : 5px;
  display    : none;
  font-weight: 400;
  transition : color 0.3s;
}

.field-error.show {
  display: block;
}

.btn-submit {
  width         : 100%;
  padding       : 14px;
  background    : var(--brand);
  color         : #fff;
  border        : none;
  border-radius: 4px;
  font-family   : 'Inter', sans-serif;
  font-size     : 13px;
  font-weight   : 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor        : pointer;
  transition    : all 0.22s ease;
}

/* --- Dark theme: stronger button contrast --- */




.btn-submit:hover:not(:disabled) {
  background: var(--brand-dark);
  transform : translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

/* ============================================================
   MESSAGES
   ============================================================ */
.message {
  border-radius: 4px;
  padding      : 12px 16px;
  font-size    : 13px;
  margin-top   : 12px;
  display      : none;
  transition   : background 0.35s, color 0.3s;
}

.message.success {
  background: rgba(90, 138, 106, 0.1);
  border    : 1px solid rgba(90, 138, 106, 0.25);
  color     : var(--success);
  display   : block;
}

.message.error {
  background: rgba(192, 57, 43, 0.08);
  border    : 1.5px solid rgba(192, 57, 43, 0.3);
  border-radius: 5px;
  padding   : 10px 14px;
  color     : #c0392b;
  font-size : 13px;
}

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */
.success-screen {
  text-align   : center;
  padding      : 48px 24px;
  background   : var(--surface);
  border       : 1.5px solid rgba(90, 138, 106, 0.25);
  border-radius: 5px;
  box-shadow   : var(--shadow-md);
  animation    : fadeUp 0.5s ease both;
  display      : none;
  transition   : background 0.35s, box-shadow 0.35s;
}

.success-screen .icon {
  font-size    : 2.5rem;
  margin-bottom: 16px;
}

.success-screen h2 {
  font-family  : 'Playfair Display', serif;
  font-size    : 1.8rem;
  font-weight  : 400;
  color        : var(--success);
  margin-bottom: 10px;
  transition   : color 0.3s;
}

.success-screen p {
  font-size  : 14px;
  color      : var(--text-2);
  font-weight: 300;
  line-height: 1.6;
  transition : color 0.3s;
}

.btn-new-booking {
  margin-top    : 20px;
  padding       : 10px 24px;
  background    : none;
  border        : 1.5px solid var(--success);
  color         : var(--success);
  border-radius: 6px;
  font-family   : 'Inter', sans-serif;
  font-size     : 12px;
  font-weight   : 500;
  letter-spacing: 0.08em;
  cursor        : pointer;
  transition    : all 0.2s;
}

.btn-new-booking:hover {
  background: var(--success);
  color     : #fff;
}

/* ============================================================
   CANCEL SCREEN
   ============================================================ */
.cancel-screen {
  text-align   : center;
  padding      : 48px 24px;
  background   : var(--surface);
  border       : 1.5px solid var(--border);
  border-radius: 5px;
  box-shadow   : var(--shadow-md);
  animation    : fadeUp 0.5s ease both;
  margin-bottom: 32px;
  transition   : background 0.35s, box-shadow 0.35s;
}

.cancel-screen .icon {
  font-size    : 2.5rem;
  margin-bottom: 16px;
}

.cancel-screen h2 {
  font-family  : 'Playfair Display', serif;
  font-size    : 1.8rem;
  font-weight  : 400;
  color        : var(--error);
  margin-bottom: 10px;
  transition   : color 0.3s;
}

.cancel-screen p {
  font-size  : 14px;
  color      : var(--text-2);
  font-weight: 300;
  line-height: 1.6;
  transition : color 0.3s;
}

.footer {
  text-align : center;
  margin-top : 40px;
  padding-top: 24px;
  border-top : 1px solid var(--border);
  transition : border-color 0.35s;
}

.footer-links {
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 20px;
  flex-wrap      : wrap;
}

.footer-link {
  display        : flex;
  align-items    : center;
  gap            : 6px;
  font-size      : 12px;
  color          : var(--muted);
  font-weight    : 300;
  text-decoration: none;
  transition     : color 0.2s;
}

.footer-link:hover {
  color: var(--brand);
}

.footer-link svg {
  flex-shrink: 0;
}

.footer-sep {
  width     : 1px;
  height    : 14px;
  background: var(--border);
  transition: background 0.35s;
}

.footer-credit {
  margin-top    : 12px;
  font-size     : 11px;
  color         : var(--muted);
  font-weight   : 300;
  letter-spacing: 0.03em;
  transition    : color 0.3s;
}

.footer-credit:hover {
  opacity: 1;
}

.footer-credit a {
  color          : var(--muted);
  text-decoration: none;
  font-weight    : 300;
  border-bottom  : 1px dotted var(--muted);
  transition     : color 0.2s, border-color 0.2s;
}

.footer-credit a:hover {
  color              : var(--text-2);
  border-bottom-color: var(--text-2);
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-toggle {
  text-align: center;
  margin-top: 32px;
}

.btn-admin {
  background    : none;
  border        : 1px solid var(--border);
  color         : var(--muted);
  padding       : 8px 18px;
  border-radius: 6px;
  font-family   : 'Inter', sans-serif;
  font-size     : 11px;
  font-weight   : 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor        : pointer;
  transition    : all 0.2s;
}

.btn-admin:hover {
  border-color: var(--brand);
  color       : var(--brand);
}

.admin-panel {
  margin-top   : 16px;
  background   : var(--surface);
  border       : 1.5px solid var(--border);
  border-radius: 5px;
  padding      : 24px;
  display      : none;
  box-shadow   : var(--shadow-md);
  animation    : fadeUp 0.3s ease both;
  transition   : background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.admin-panel.open {
  display: block;
}

.admin-panel h3 {
  font-family  : 'Playfair Display', serif;
  font-size    : 1.2rem;
  font-weight  : 400;
  margin-bottom: 16px;
  color        : var(--text);
  transition   : color 0.3s;
}

.admin-login {
  display: flex;
  gap    : 10px;
}

.admin-login input {
  background   : var(--surface);
  border       : 1.5px solid var(--border-strong);
  flex         : 1;
  padding      : 10px 14px;
  border       : 1.5px solid var(--border);
  border-radius: 5px;
  font-family  : 'Inter', sans-serif;
  font-size    : 13px;
  color        : var(--text);
  background   : var(--surface-2);
  outline      : none;
  transition   : border-color 0.2s, background 0.35s, color 0.3s;
}

.admin-login input:focus {
  border-color: var(--brand);
}

.btn-small {
  display        : inline-flex;
  align-items    : center;
  justify-content: center;
  gap            : 5px;
  padding        : 8px 16px;
  background     : var(--brand);
  color          : #fff;
  border         : none;
  border-radius  : 5px;
  font-family    : 'Inter', sans-serif;
  font-size      : 12px;
  font-weight    : 500;
  letter-spacing : 0.06em;
  cursor         : pointer;
  transition     : background 0.2s;
  white-space    : nowrap;
  min-width      : 90px;
  text-align     : center;
  flex-shrink    : 0;
}

.btn-small:hover {
  background: var(--brand-dark);
}

.btn-small.danger {
  background: var(--error);
}

.btn-small.success-btn {
  background: var(--success);
}

.admin-slot-row {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 12px 0;
  border-bottom  : 1px solid var(--surface-2);
  font-size      : 13px;
  color          : var(--text-2);
  gap            : 12px;
  flex-wrap      : nowrap;
  transition     : border-color 0.35s, color 0.3s;
}

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

.admin-month-group {
  margin-bottom: 1.5rem;
}

.bulk-day-btn {
  border       : 0.5px solid var(--border);
  border-radius: 5px;
  padding      : 8px 4px;
  text-align   : center;
  cursor       : pointer;
  transition   : all 0.15s;
  background   : var(--surface);
}

.bulk-day-btn:hover { border-color: var(--brand); }

.bulk-day-btn.bulk-selected {
  background   : var(--brand-subtle);
  border-color : var(--brand);
  border-width : 1.5px;
}

.bulk-day-btn.bulk-past {
  opacity       : 0.35;
  cursor        : not-allowed;
  pointer-events: none;
}

.bulk-abbr {
  display      : block;
  font-size    : 9px;
  font-weight  : 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color        : var(--muted);
  margin-bottom: 3px;
}

.bulk-selected .bulk-abbr { color: var(--brand); }

.bulk-num {
  display    : block;
  font-size  : 14px;
  font-weight: 500;
  color      : var(--text);
}

.bulk-selected .bulk-num { color: var(--brand); }

.admin-month-label {
  font-size     : 10px;
  font-weight   : 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color         : var(--brand);
  padding-bottom: 6px;
  border-bottom : 2px solid var(--brand-subtle);
  margin-bottom : 4px;
}

.admin-slot-label {
  flex: 1;
}

.admin-slot-actions {
  display    : flex;
  align-items: center;
  gap        : 8px;
  flex-shrink: 0;
}

.btn-icon {
  background   : none;
  border       : none;
  cursor       : pointer;
  font-size    : 14px;
  padding      : 5px 7px;
  border-radius: 4px;
  opacity      : 1;
  transition   : background 0.2s;
  line-height  : 1;
  display      : inline-flex;
  align-items  : center;
  justify-content: center;
}

.btn-icon svg {
  width : 15px;
  height: 15px;
  stroke: var(--muted);
  fill  : none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.btn-edit:hover svg { stroke: var(--brand); }
.btn-delete:hover svg { stroke: var(--error); }



.slot-patient-name {
  display    : block;
  font-size  : 12px;
  color      : var(--brand);
  margin-top : 3px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .btn-icon { opacity: 1; }
}

.btn-edit:hover {
  background: rgba(160, 106, 90, 0.12);
}

.btn-delete:hover {
  background: rgba(160, 90, 90, 0.12);
}

.admin-edit-row {
  display              : grid;
  grid-template-columns: 1fr 1fr;
  gap                  : 8px;
  padding              : 8px 0;
  width                : 100%;
}

/* --- Buttons row always together --- */
.admin-edit-row .edit-btn-group {
  grid-column: 1 / -1;
  display    : flex;
  gap        : 8px;
}

.admin-edit-row input,
.admin-edit-row select {
  padding      : 7px 10px;
  border       : 1.5px solid var(--border-strong);
  border-radius: 5px;
  font-family  : 'Inter', sans-serif;
  font-size    : 12px;
  color        : var(--text);
  background   : var(--surface);
  outline      : none;
  width        : 100%;
  box-sizing   : border-box;
  transition   : border-color 0.2s, background 0.35s, color 0.3s;
}

.admin-edit-row input:focus,
.admin-edit-row select:focus {
  border-color: var(--brand);
}

.admin-edit-row input:disabled {
  opacity: 0.5;
  cursor : not-allowed;
  color  : var(--muted);
}

.slot-status-pill {
  font-size     : 11px;
  font-weight   : 500;
  padding       : 4px 10px;
  border-radius: 10px;
  letter-spacing: 0.06em;
  min-width     : 80px;
  text-align    : center;
  flex-shrink   : 0;
  display       : inline-block;
}

.slot-status-pill.available {
  background: rgba(90, 138, 106, 0.12);
  color     : var(--success);
}

.slot-status-pill.booked {
  background: rgba(158, 145, 133, 0.15);
  color     : var(--muted);
}

.admin-tabs {
  display      : flex;
  gap          : 0;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 4px;
  margin-top   : 16px;
}

.admin-tab {
  padding      : 10px 20px;
  font-family  : 'Inter', sans-serif;
  font-size    : 13px;
  font-weight  : 400;
  color        : var(--muted);
  background   : none;
  border       : none;
  border-bottom: 2px solid transparent;
  cursor       : pointer;
  transition   : all 0.2s;
  margin-bottom: -1.5px;
  display     : inline-flex;
  align-items : center;
  gap         : 6px;
}

.admin-tab svg {
  width : 14px;
  height: 14px;
  stroke: currentColor;
  fill  : none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.admin-tab:hover {
  color: var(--text-2);
}

.admin-tab.active {
  color        : var(--brand);
  font-weight  : 500;
  border-bottom: 2px solid var(--brand);
}

/* --- Scrollable slots list --- */
.slots-scroll {
  max-height   : 480px;
  overflow-y   : auto;
  padding-right: 4px;
  margin-bottom: 8px;
}

.slots-scroll::-webkit-scrollbar {
  width: 4px;
}

.slots-scroll::-webkit-scrollbar-track {
  background   : var(--surface-2);
  border-radius: 4px;
}

.slots-scroll::-webkit-scrollbar-thumb {
  background   : var(--border-strong);
  border-radius: 4px;
}

.add-slot-form {
  margin-top : 28px;
  padding-top: 20px;
  border-top : 1px solid var(--border);
  transition : border-color 0.35s;
}

.add-slot-form h4 {
  font-size     : 12px;
  font-weight   : 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color         : var(--muted);
  margin-bottom : 12px;
  transition    : color 0.3s;
}

.add-slot-inputs {
  display              : grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap                  : 8px;
  margin-bottom        : 10px;
}

.add-slot-field {
  display       : flex;
  flex-direction: column;
  gap           : 5px;
}

.add-slot-label {
  font-size     : 11px;
  font-weight   : 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color         : var(--muted);
  transition    : color 0.3s;
}

.add-slot-inputs input,
.add-slot-inputs select {
  padding      : 9px 12px;
  border       : 1.5px solid var(--border-strong);
  border-radius: 5px;
  font-family  : 'Inter', sans-serif;
  font-size    : 12px;
  color        : var(--text);
  background   : var(--surface);
  outline      : none;
  transition   : border-color 0.2s, background 0.35s, color 0.3s;
  width        : 100%;
  box-sizing   : border-box;
}

.add-slot-inputs input:focus,
.add-slot-inputs select:focus {
  border-color: var(--brand);
}

.add-slot-inputs input:disabled {
  opacity: 0.6;
  cursor : not-allowed;
  color  : var(--muted);
}

.add-slot-inputs select {
  cursor: pointer;
}

.booking-row {
  display              : grid;
  grid-template-columns: 120px 1fr;
  gap                  : 8px;
  padding              : 12px 0;
  border-bottom        : 1px solid var(--surface-2);
  font-size            : 13px;
  align-items          : start;
  transition           : border-color 0.35s;
}

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

.booking-slot-id {
  font-weight: 500;
  color      : var(--brand);
  font-size  : 12px;
  padding-top: 2px;
  transition : color 0.3s;
  line-height: 1.5;
  min-width  : 90px;
}

.booking-details {
  color      : var(--text-2);
  line-height: 1.7;
  transition : color 0.3s;
}

.detail-line {
  display    : flex;
  align-items: center;
  gap        : 5px;
  margin-bottom: 2px;
  font-size  : 13px;
}

.booking-details strong {
  color      : var(--text);
  font-weight: 500;
  transition : color 0.3s;
}

/* --- Scrollable bookings container --- */
.bookings-scroll {
  max-height   : 500px;
  overflow-y   : auto;
  padding-right: 4px;
}

.bookings-scroll::-webkit-scrollbar {
  width: 4px;
}

.bookings-scroll::-webkit-scrollbar-track {
  background   : var(--surface-2);
  border-radius: 4px;
}

.bookings-scroll::-webkit-scrollbar-thumb {
  background   : var(--border-strong);
  border-radius: 4px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity  : 0;
    transform: translateY(16px);
  }

  to {
    opacity  : 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.mobile-br {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap                  : 6px;
    padding              : 12px;
  }

  .fields-row {
    grid-template-columns: 1fr;
  }

  .add-slot-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .day-date-num {
    font-size: 1.2rem;
  }

  .mobile-br {
    display: block;
  }

  /* --- Admin slot row: label on top, actions below --- */
  .admin-slot-row {
    flex-wrap     : wrap;
    gap           : 6px;
  }

  .admin-slot-label {
    flex  : 1;
    min-width: 60%;
  }

  .admin-slot-actions {
    width          : 100%;
    justify-content: flex-start;
    flex-wrap      : wrap;
  }

  /* --- Booking row: stack vertically --- */
  .booking-row {
    grid-template-columns: 1fr;
    gap                  : 4px;
  }

  .booking-slot-id {
    font-size  : 13px;
    font-weight: 600;
    padding-top: 0;
  }
}

@media (max-width: 380px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
/* ============================================================
   INLINE SVG ICONS — booking details + button icons
   ============================================================ */
.detail-icon {
  display        : inline-block;
  width          : 13px;
  height         : 13px;
  min-width      : 13px;
  min-height     : 13px;
  max-width      : 13px;
  max-height     : 13px;
  vertical-align : middle;
  margin-right   : 4px;
  stroke         : var(--muted);
  stroke-width   : 1.8;
  stroke-linecap : round;
  stroke-linejoin: round;
  fill           : none;
  flex-shrink    : 0;
  overflow       : visible;
}

.btn-icon-svg {
  display        : inline-block;
  width          : 13px !important;
  height         : 13px !important;
  min-width      : 13px;
  max-width      : 13px;
  vertical-align : middle;
  margin-right   : 0;
  stroke         : currentColor;
  stroke-width   : 2.5;
  stroke-linecap : round;
  stroke-linejoin: round;
  fill           : none;
  flex-shrink    : 0;
}

/* btn-small flex defined above */

}