/* ==========================================================================
   Design System Variables & Theme Setup
   ========================================================================== */
:root {
  /* Colors */
  --bg-color: #FBF6EF;          /* Cream/Ivory */
  --primary-color: #E2795A;     /* Terracotta primary accent */
  --secondary-color: #8CA888;   /* Sage green secondary */
  --highlight-color: #E8B84B;   /* Soft gold highlight */
  --text-dark: #332B36;         /* Charcoal-plum text */
  --text-muted: #5A4E5E;        /* Lighter charcoal-plum for sub-copy */
  --card-bg: #FFFFFF;
  --placeholder-bg: #F3EAE0;
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* UI/UX Styling */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 12px rgba(51, 43, 54, 0.04);
  --shadow-md: 0 10px 24px rgba(51, 43, 54, 0.06);
  --shadow-lg: 0 16px 36px rgba(51, 43, 54, 0.1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Elements & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography & Common Components
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30%;
  width: 40%;
  height: 3px;
  background-color: var(--highlight-color);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--secondary-color);
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   1. Sticky Header
   ========================================================================== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 246, 239, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 121, 90, 0.08);
  transition: var(--transition-smooth);
}

.sticky-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
  background-color: rgba(251, 246, 239, 0.98);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo:hover {
  opacity: 0.9;
}

/* Navigation Menu */
.nav-menu ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
  background-color: #7b9777;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  position: relative;
  transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
  content: '';
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger Activation */
.mobile-nav-toggle.active .hamburger {
  background-color: transparent;
}
.mobile-nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.mobile-nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--secondary-color);
  background-color: rgba(140, 168, 136, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 3rem;
}

/* HIGH CONTRAST CTA BUTTON: The most visually prominent element */
.hero-cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1.2rem 2.75rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(226, 121, 90, 0.4);
  transition: var(--transition-smooth);
  border: 1px solid rgba(226, 121, 90, 0.2);
}

.hero-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(226, 121, 90, 0.5), 0 0 0 4px rgba(226, 121, 90, 0.15);
}

/* Background blob decorations */
.hero-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.circle-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blob-1 {
  background-color: var(--primary-color);
  width: 350px;
  height: 350px;
  top: -10%;
  left: 10%;
}

.blob-2 {
  background-color: var(--secondary-color);
  width: 400px;
  height: 400px;
  bottom: -20%;
  right: 5%;
}

/* ==========================================================================
   3. Her Story Section
   ========================================================================== */
.story-section {
  padding: 6rem 1.5rem;
  background-color: rgba(140, 168, 136, 0.04);
}

.story-container {
  max-width: 1100px;
  margin: 0 auto;
}

.story-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-top: 4rem;
  align-items: center;
}

/* Photo Placeholder Box (used in Story and Gallery) */
.photo-placeholder-box {
  background-color: var(--placeholder-bg);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(226, 121, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.photo-placeholder-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(226, 121, 90, 0.03) 0%, rgba(140, 168, 136, 0.03) 100%);
}

.placeholder-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  opacity: 0.75;
  transition: var(--transition-smooth);
  z-index: 2;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.placeholder-graphic span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.photo-placeholder-box:hover {
  border-color: var(--primary-color);
  background-color: #ede2d5;
}

.photo-placeholder-box:hover .placeholder-graphic {
  opacity: 1;
  transform: scale(1.05);
}

/* Coach Profile Photo Specific */
.coach-photo-placeholder {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.coach-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.story-text-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-paragraph {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. Gallery Section
   ========================================================================== */
.gallery-section {
  padding: 6rem 1.5rem;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-photo-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.gallery-photo-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.gallery-photo-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.gallery-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.gallery-caption {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-top: 1rem;
  text-align: center;
}

/* ==========================================================================
   5. Footer Section
   ========================================================================== */
.footer-section {
  background-color: rgba(51, 43, 86, 0.03);
  padding: 5rem 1.5rem 3rem;
  border-top: 1px solid rgba(140, 168, 136, 0.15);
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.footer-socials {
  display: flex;
  gap: 1.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(226, 121, 90, 0.08);
  color: var(--primary-color);
  border-radius: 50%;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.social-icon {
  width: 20px;
  height: 20px;
}

.footer-contact {
  margin-bottom: 0.5rem;
}

.contact-email {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-dark);
  position: relative;
  font-weight: 600;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--highlight-color);
  transition: var(--transition-smooth);
}

.contact-email:hover {
  color: var(--primary-color);
}

.contact-email:hover::after {
  background-color: var(--primary-color);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Media Queries (Mobile First Layout Adjustments)
   ========================================================================== */

/* Breakpoint: Mobile-medium/Tablet - 640px */
@media (min-width: 640px) {
  .hero-section {
    padding: 8rem 2rem;
  }
  
  .story-section {
    padding: 8rem 2rem;
  }

  .gallery-section {
    padding: 8rem 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .coach-photo-placeholder {
    max-width: 450px;
  }
}

/* Breakpoint: Desktop - 1024px */
@media (min-width: 1024px) {
  /* Header navigation toggle hides and standard navigation appears */
  .mobile-nav-toggle {
    display: none;
  }

  .story-content-grid {
    grid-template-columns: 4.5fr 7.5fr;
    gap: 5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer-section {
    padding: 6rem 2rem 4rem;
  }
}

/* Hamburger mobile fallback overlay style */
@media (max-width: 1023px) {
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-lg);
    padding: 7rem 2.5rem;
    transition: var(--transition-smooth);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .nav-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 0.9rem;
  }
}

/* ==========================================================================
   Booking Page Styles
   ========================================================================== */
.booking-main {
  padding: 4rem 1.5rem 6rem;
}

.booking-page-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.booking-header {
  text-align: center;
  margin-bottom: 1rem;
}

.booking-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.booking-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  border: 1px solid rgba(140, 168, 136, 0.12);
  transition: var(--transition-smooth);
}

/* Loader */
.booking-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  text-align: center;
  color: var(--text-muted);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(226, 121, 90, 0.15);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Calendar Month Nav */
.calendar-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-month-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-arrow-btn {
  background: none;
  border: 1px solid rgba(51, 43, 54, 0.1);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-arrow-btn:hover {
  background-color: rgba(226, 121, 90, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.arrow-icon {
  width: 20px;
  height: 20px;
}

/* Calendar Weekdays */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Calendar Days Grid */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: var(--transition-smooth);
}

/* Padding/Previous Month Days */
.calendar-day.pad {
  color: rgba(51, 43, 54, 0.25);
  pointer-events: none;
}

/* Disabled Days */
.calendar-day.disabled {
  color: rgba(51, 43, 54, 0.25);
  pointer-events: none;
  text-decoration: line-through;
}

/* Available Days */
.calendar-day.available {
  cursor: pointer;
  background-color: rgba(226, 121, 90, 0.06);
  color: var(--primary-color);
  font-weight: 600;
  border: 1px solid rgba(226, 121, 90, 0.15);
}

.calendar-day.available:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(226, 121, 90, 0.25);
}

/* Selected Day */
.calendar-day.available.selected {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(226, 121, 90, 0.35);
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(51, 43, 54, 0.06);
  padding-top: 1.25rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-color.available {
  background-color: rgba(226, 121, 90, 0.3);
  border: 1px solid var(--primary-color);
}

/* Slots Section */
.slots-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: center;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.slot-pill {
  border: 1px solid rgba(140, 168, 136, 0.25);
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.slot-pill:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.slot-pill.selected {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 10px rgba(140, 168, 136, 0.3);
}

/* Booking Form */
.form-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: center;
}

.booking-summary-banner {
  background-color: rgba(232, 184, 75, 0.08);
  border-left: 4px solid var(--highlight-color);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input {
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(51, 43, 54, 0.15);
  border-radius: var(--radius-md);
  background-color: var(--bg-color);
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(226, 121, 90, 0.1);
}

.submit-booking-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(226, 121, 90, 0.25);
  transition: var(--transition-smooth);
}

.submit-booking-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(226, 121, 90, 0.35);
}

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

/* Success / Confirmation State */
.confirmation-section {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: rgba(140, 168, 136, 0.12);
  color: var(--secondary-color);
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.success-icon {
  width: 36px;
  height: 36px;
}

.confirmation-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.confirmation-details {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.confirmation-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.back-home-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.back-home-btn:hover {
  background-color: #7b9777;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Case: No Availability Card */
.no-availability-card {
  text-align: center;
  padding: 4rem 2rem;
}

.no-avail-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.no-availability-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.no-availability-card p {
  color: var(--text-muted);
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Desktop spacing adjustments */
@media (min-width: 1024px) {
  .booking-main {
    padding: 6rem 2rem 8rem;
  }
}

/* ==========================================================================
   Admin Page specific styling
   ========================================================================== */
.admin-main {
  padding: 4rem 1.5rem 6rem;
}

/* Header Logout Button overrides */
.logo-badge {
  background-color: var(--highlight-color);
  color: var(--text-dark);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-weight: 600;
  margin-left: 0.5rem;
}

.logout-btn {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(51, 43, 54, 0.15);
  cursor: pointer;
  box-shadow: none;
  font-size: 0.9rem;
}

.logout-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Login Page Layout */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  max-width: 440px;
  width: 100%;
}

.login-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.login-error-alert {
  background-color: rgba(226, 121, 90, 0.08);
  border-left: 4px solid var(--primary-color);
  color: var(--primary-color);
  padding: 1rem;
  font-size: 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Dashboard Tabs */
.dashboard-section {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-tabs {
  display: flex;
  border-bottom: 2px solid rgba(140, 168, 136, 0.15);
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px 2px 0 0;
}

/* Tab Display State */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Dashboard Grid Layout (Availability Manager) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.calendar-panel {
  padding: 2rem;
}

/* Legend items in dashboard */
.calendar-legend .legend-color.configured {
  background-color: rgba(232, 184, 75, 0.15);
  border: 1px solid var(--highlight-color);
}

/* Admin Day Calendar states */
.calendar-day.configured {
  border: 1px solid var(--highlight-color);
  background-color: rgba(232, 184, 75, 0.08);
  font-weight: 600;
}

.calendar-day.configured:hover {
  background-color: var(--highlight-color);
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(232, 184, 75, 0.3);
}

.calendar-day.admin-day {
  cursor: pointer;
}

.calendar-day.admin-day:hover {
  background-color: rgba(140, 168, 136, 0.12);
  transform: translateY(-2px);
}

.calendar-day.admin-day.selected {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 10px rgba(140, 168, 136, 0.3);
}

/* Configuration Side Panel */
.slots-config-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.panel-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.config-date-header {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.slots-list-wrapper {
  margin-bottom: 2.5rem;
}

.slots-list-wrapper h4,
.add-slot-form-wrapper h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Active Admin Slot Pill Elements */
.active-slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.no-slots-alert {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.admin-slot-item {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border: 1px solid rgba(51, 43, 54, 0.1);
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.delete-slot-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-left: 0.5rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.delete-slot-btn:hover {
  background-color: rgba(226, 121, 90, 0.12);
  color: var(--primary-color);
}

/* Add Slot Form */
.add-slot-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-input-group {
  display: flex;
  gap: 0.75rem;
}

.time-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(51, 43, 54, 0.15);
  border-radius: var(--radius-md);
  background-color: var(--bg-color);
  transition: var(--transition-smooth);
}

.time-input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(226, 121, 90, 0.1);
}

.add-slot-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.add-slot-btn:hover {
  background-color: #7b9777;
  transform: translateY(-2px);
}

.input-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* No Selection State Prompts */
.no-date-selected-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  gap: 1.25rem;
}

.prompt-icon {
  width: 48px;
  height: 48px;
  color: var(--secondary-color);
  opacity: 0.5;
}

.no-date-selected-prompt p {
  font-size: 0.95rem;
  max-width: 280px;
}

/* ==========================================================================
   Bookings Table List View
   ========================================================================== */
.bookings-list-card {
  padding: 2.5rem;
}

.bookings-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.bookings-list-header h2 {
  font-size: 1.75rem;
}

.bookings-count {
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(140, 168, 136, 0.12);
  color: var(--secondary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bookings-table-container {
  overflow-x: auto;
  border: 1px solid rgba(51, 43, 54, 0.08);
  border-radius: var(--radius-md);
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.bookings-table th,
.bookings-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(51, 43, 54, 0.08);
}

.bookings-table th {
  background-color: rgba(140, 168, 136, 0.04);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bookings-table tbody tr {
  transition: var(--transition-smooth);
}

.bookings-table tbody tr:hover {
  background-color: rgba(251, 246, 239, 0.5);
}

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

.table-email-link {
  color: var(--primary-color);
  font-weight: 500;
}

.table-email-link:hover {
  text-decoration: underline;
}

.table-time-badge {
  background-color: rgba(226, 121, 90, 0.08);
  color: var(--primary-color);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.table-created-col {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Past Booking (Visually Muted) */
.past-booking {
  opacity: 0.65;
  background-color: rgba(51, 43, 54, 0.02);
}

.past-booking strong {
  font-weight: 500;
}

.past-booking .table-time-badge {
  background-color: rgba(51, 43, 54, 0.06);
  color: var(--text-muted);
}

.no-bookings-message {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Responsive Admin Layout Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 7fr 5fr;
  }
}

@media (min-width: 1024px) {
  .admin-main {
    padding: 6rem 2rem 8rem;
  }
}

/* Booked Warning Banner */
.date-booked-warning {
  background-color: rgba(226, 121, 90, 0.08);
  border-left: 4px solid var(--primary-color);
  color: var(--text-dark);
  padding: 1rem;
  font-size: 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Delete Date Wrapper & Button */
.delete-date-wrapper {
  margin-top: 2rem;
  border-top: 1px solid rgba(51, 43, 54, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.delete-date-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.delete-date-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Slot Booked Badge in Admin Configuration */
.slot-booked-badge {
  background-color: rgba(140, 168, 136, 0.15);
  color: var(--secondary-color);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-slot-item.locked-slot {
  border-color: rgba(140, 168, 136, 0.25);
  background-color: rgba(140, 168, 136, 0.03);
}

/* Disabled Slot Pills on Client Booking Side */
.slot-pill.disabled {
  background-color: rgba(51, 43, 54, 0.04);
  color: rgba(51, 43, 54, 0.25);
  border: 1px dashed rgba(51, 43, 54, 0.15);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

