/* ============================================
   OUR LADY OF THE ATONEMENT - CONFESSION SCHEDULER
   ============================================ */

:root {
  /* Sacred color palette - deep burgundy and gold accents */
  --color-primary: #6B2D3C;
  --color-primary-dark: #0f3146;
  --color-primary-light: #8B4D5C;
  --color-accent: #C9A227;
  --color-accent-light: #E8D59A;
  
  /* Neutral palette */
  --color-bg: #FAF8F5;
  --color-bg-warm: #F5F0E8;
  --color-surface: #FFFFFF;
  --color-border: #E8E2D9;
  --color-border-dark: #D4CCC0;
  
  /* Text colors */
  --color-text: #2C2420;
  --color-text-secondary: #6b5e54;
  --color-text-muted: #9B8E84;
  
  /* Status colors */
  --color-success: #4A7C59;
  --color-success-light: #E8F2EB;
  --color-error: #B54A4A;
  --color-error-light: #FCEAEA;
  
  /* Slot colors */
  --color-available: #4A7C59;
  --color-reserved: #9B8E84;
  --color-own: var(--color-primary);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-2xs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 36, 32, 0.1);
  --shadow-lg: 0 8px 24px rgba(44, 36, 32, 0.12);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

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

/* ============================================
   HEADER
   ============================================ */

.header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cross {
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1;
}

.church-name h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
  line-height: 1.2;
}

.church-name .subtitle {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

/* Auth Navigation */
.auth-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.auth-buttons {
  display: flex;
  gap: var(--space-sm);
}

.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.user-button:hover {
  border-color: var(--color-border-dark);
  background: var(--color-bg-warm);
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border-radius: 50%;
  margin-top: 2px;
}

.chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropdown {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  overflow: hidden;
}

.dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  white-space: nowrap;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

.dropdown a:hover {
  background: var(--color-bg-warm);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-bg-warm);
  border-color: var(--color-border-dark);
}

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

.btn-danger:hover:not(:disabled) {
  background: #9A3F3F;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
}

.btn-form {
  padding: var(--space-xs) var(--space-md);
  border-radius: 6px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-xl);
}

.hero h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.hero-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Info Section */
.info-section {
  max-width: 40rem;
  margin: 0 auto var(--space-2xl);
}

.info-bullets {
  margin: 0;
  padding-left: var(--space-xl);
  list-style-type: disc;
}

.info-bullets li {
  color: var(--color-text);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.info-bullets li::marker {
  font-size: 0.75em;
}

.info-bullets li:last-child {
  margin-bottom: 0;
}

/* Schedule Section */
.schedule-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.schedule-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.legend {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

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

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

/* Schedule Container */
.schedule-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Month Heading */
.month-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.month-heading:first-child {
  margin-top: 0;
}

/* Day Card */
.day-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.day-header {
  background: var(--color-bg-warm);
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.day-date {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
}

.day-slots {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
}

/* Exclusion note for days without confessions */
.exclusion-note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  margin: 0;
}

.day-card.excluded {
  opacity: 0.85;
}

.day-card.excluded .day-header {
  background: var(--color-bg);
}

/* For single confessor days - direct slot buttons */
.day-slots > .slot {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Confessor name heading within day */
.confessor-name-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border-light);
}

.confessor-name-heading:first-child {
  margin-top: 0;
}

/* Confessor's time slots grid */
.confessor-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

/* Time Slot */
.slot {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  text-align: center;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.slot.available {
  background: var(--color-success-light);
  color: var(--color-available);
  cursor: pointer;
  border-color: transparent;
}

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

.slot.reserved {
  background: var(--color-bg-warm);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.slot.own {
  background: var(--color-primary);
  color: white;
  cursor: pointer;
}

.slot.own:hover {
  background: var(--color-primary-dark);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  color: var(--color-text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-md);
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-text-secondary);
}

.empty-state h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: var(--space-xl);
  margin-top: auto;
}

.footer p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.footer-note {
  margin-top: var(--space-sm) !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem !important;
  opacity: 0.9;
}

.footer-verse {
  margin-top: var(--space-xs) !important;
  font-family: var(--font-body);
  font-size: 0.875rem !important;
  opacity: 0.7;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-bg-warm);
  color: var(--color-text);
}

/* Auth Forms */
.auth-form h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 var(--space-xs);
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-xl);
}

.auth-switch {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.auth-switch a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-forgot {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.875rem;
}

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

.auth-forgot a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group > label:not(.checkbox-label):not(.radio-label) {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  background: var(--color-surface);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107, 45, 60, 0.1);
}

/* Custom Select Styling */
select,
.custom-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5E54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-sm) center;
  background-size: 16px;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-fast);
}

select:hover,
.custom-select:hover {
  border-color: var(--color-border-dark);
}

select:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107, 45, 60, 0.1);
}

select:disabled,
.custom-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-group input::placeholder {
  color: var(--color-text-muted);
}

.form-error {
  background: var(--color-error-light);
  color: var(--color-error);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.form-error.hidden {
  display: none;
}

.form-success {
  background: var(--color-success-light);
  color: var(--color-success);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.form-success.hidden {
  display: none;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* Toggle Group */
.toggle-group {
  display: flex;
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
  padding: 3px;
}

.toggle-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-btn:hover:not(.active) {
  color: var(--color-text);
}

.toggle-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.radio-label:hover {
  background: var(--color-bg-warm);
}

.radio-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.radio-label input:checked + .radio-custom {
  border-color: var(--color-primary);
}

.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-fast);
}

.radio-label input:checked + .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

/* Checkbox */
.checkbox-group {
  margin-top: var(--space-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox-label span {
  user-select: none;
}

/* Hidden checkbox for custom styling */
.checkbox-label input.hidden-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
}

.checkbox-label input:checked + .checkbox-custom::after {
  opacity: 1;
}

/* Booking Modal */
.booking-modal-content {
  max-width: 400px;
}

.booking-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.booking-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 var(--space-md);
}

.booking-slot-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
}

.booking-slot-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.booking-date-day,
.booking-date-full {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.booking-time {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

.booking-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.booking-actions .btn {
  flex: 1;
}

/* Reservations Modal */
.reservations-modal-content {
  max-width: 500px;
}

.reservations-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 var(--space-xl);
}

.reservations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 400px;
  overflow-y: auto;
}

.reservation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
  gap: var(--space-md);
}

.reservation-info {
  flex: 1;
}

.reservation-date {
  font-weight: 500;
  color: var(--color-text);
}

.reservation-time {
  color: var(--color-primary);
  font-weight: 600;
}

.reservation-recurrence {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Cancel Modal */
.cancel-modal-content {
  max-width: 500px;
  text-align: center;
}

.cancel-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 var(--space-md);
}

.cancel-modal-content p {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-lg);
}

.cancel-modal-content .form-group {
  text-align: left;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 2000;
}

.toast {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  max-width: 360px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-exit {
  animation: toastOut 0.2s ease forwards;
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

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

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

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

/* ============================================
   MODAL OVERLAY (Alternative Pattern)
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay .modal-content {
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  margin-bottom: var(--space-md);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
}

.modal-body {
  margin-bottom: var(--space-lg);
}

.modal-body input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.modal-body input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal-body p {
  margin: 0;
  color: var(--color-text-secondary);
}

.modal-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.loading {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-secondary);
}

.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-secondary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  
  .logo {
    text-align: center;
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .church-name h1 {
    font-size: 1.25rem;
  }
  
  .auth-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .info-bullets {
    padding-left: var(--space-lg);
  }

  .info-bullets li {
    font-size: 1.1rem;
  }
  
  .schedule-section {
    padding: var(--space-md);
  }
  
  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .legend {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .day-slots {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  }
  
  .modal-content {
    margin: var(--space-md);
    padding: var(--space-lg);
  }
  
  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
  }
  
  .toast {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .day-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .booking-actions {
    flex-direction: column;
  }
}

