/* PrePair Design System - Extracted from Homepage */

:root {
  /* Core Brand Colors - Updated for PrePair */
  --coral: #111111;
  --coral-hover: #333333;
  --coral-light: #F8F4EC;
  
  /* Background Colors - No Harsh White */
  --bg-primary: #FAFAF8;           /* Warm off-white main backgrounds */
  --bg-cream: #F5F1E8;             /* Warm beige */
  --bg-mint: #D4EFE8;              /* Soft mint green */
  --bg-lavender: #E8E3F3;          /* Light lavender */
  --bg-card: #FFFFFF;              /* Pure white only for cards with shadows */
  --bg-gradient-hero: linear-gradient(135deg, #E8E3F3 0%, #F5F1E8 100%);
  
  /* Text Colors */
  --text-primary: #1A1A1A;         /* Sophisticated dark gray */
  --text-secondary: #666666;       /* Secondary content */
  --text-muted: #999999;           /* Light gray for timestamps */
  --text-white: #FFFFFF;
  
  /* Semantic Colors - Muted, Never Harsh */
  --success: #6B9080;              /* Muted green */
  --success-light: #E8F3F0;        /* Light success background */
  --warning: #E6B168;              /* Golden yellow */
  --warning-light: #FDF5E8;        /* Light warning background */
  --error: #D17A7A;                /* Soft red */
  --error-light: #F5E8E8;          /* Light error background */
  --info: #7BA5C7;                 /* Soft blue */
  --info-light: #EBF1F7;           /* Light info background */
  
  /* Additional accent colors */
  --mint: #A8D5BA;                 /* Mint for success states */
  --lavender: #B19CD9;             /* Lavender for info states */
  --lavender-light: #E8E3F3;       /* Light lavender */
  
  /* Border and Divider Colors */
  --border-light: #E8E8E8;         /* Subtle borders */
  --border-medium: #D0D0D0;        /* Medium borders */
  --border-dark: #B8B8B8;          /* Darker borders */
  
  /* Shadow System */
  --shadow-sm: 0 2px 4px rgba(26,26,26,0.04);
  --shadow-md: 0 4px 12px rgba(26,26,26,0.08);
  --shadow-lg: 0 8px 24px rgba(26,26,26,0.12);
  --shadow-xl: 0 20px 40px rgba(26,26,26,0.16);
  
  /* Spacing System - 8-Point Grid */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  
  /* Border Radius System */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-dashboard: 1200px;
  
  /* Typography Scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --text-5xl: 36px;
  --text-6xl: 48px;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  
  /* Transition Speeds */
  --transition-fast: 150ms;
  --transition-normal: 200ms;
  --transition-slow: 300ms;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-modal: 1100;
  --z-toast: 1200;
  --z-sticky: 1020;
  --z-modal: 1050;
  --z-tooltip: 1070;
  
  /* Legacy Variables for Compatibility */
  --bg: var(--bg-primary);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --clay: var(--coral);
  --sage: var(--bg-mint);
  --lilac: var(--bg-lavender);
  --sand: var(--bg-cream);
  --card: var(--bg-card);
  --border: var(--border-light);
  --island-bg: var(--bg-card);
  --radius-lg: var(--radius-xl);
  --shadow: var(--shadow-md);
  --container: var(--container-dashboard);
}

/* Reset and Base Styles */
html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-primary);
  line-height: 1.5;
}

/* Layout Containers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
}

/* Header System */
#header-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: margin-top .25s ease;
}

#site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease, border-radius .25s ease,
              box-shadow .25s ease, margin .25s ease, padding .20s ease;
}

/* Navigation */
.nav-left, .nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

/* Brand */
.brand, .brand-center {
  justify-self: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
}

.logo svg {
  stroke: var(--text);
  stroke-width: 2.5;
  fill: transparent;
  vector-effect: non-scaling-stroke;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.02em;
  line-height: 1;
  position: relative;
  top: 1px;
  color: var(--text);
}

/* Island Header on Scroll */
#header-shell.is-floating {
  padding-top: 20px;
  background: transparent;
}

#header-shell.is-floating #site-header {
  background: var(--island-bg);
  border: 1px solid var(--border);
  border-bottom-color: transparent;
  border-radius: 32px;
  padding: 10px 30px;
  box-shadow: 0 16px 40px rgba(15,15,15,.12);
}

/* Navigation Links */
.nav-left a, .nav-right a:not(.btn-chip) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-left a:hover, .nav-right a:not(.btn-chip):hover {
  color: var(--text);
}

/* Buttons - PrePair Style */
.btn, .btn-primary {
  appearance: none;
  border: 1.5px solid #111111;
  background: #111111;
  color: #FDF8F0;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn:hover, .btn-primary:hover {
  background: #333333;
  border-color: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.btn-chip {
  appearance: none;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-chip:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-1px);
}

/* Sign Out Button */
.sign-out-btn {
  appearance: none;
  border: 1.5px solid var(--clay);
  background: transparent;
  color: var(--clay);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 14px;
}

.sign-out-btn:hover {
  background: var(--clay);
  color: #fff;
  transform: translateY(-1px);
}

.sign-out-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Profile Link */
.profile-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.profile-link:hover {
  color: var(--text);
}

/* Navigation States */
.nav-authenticated {
  display: none;
}

.nav-guest {
  display: flex;
  align-items: center;
  gap: 32px;
}

.is-authenticated .nav-authenticated {
  display: flex;
  align-items: center;
  gap: 32px;
}

.is-authenticated .nav-guest {
  display: none;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card.sage {
  background: var(--sage);
}

.card.lilac {
  background: var(--lilac);
}

.card.sand {
  background: var(--sand);
}

.card.white {
  background: white;
}

/* Typography */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 18px;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}

h3 {
  font-family: var(--font-heading);
  margin: 8px 0 6px;
  letter-spacing: -.01em;
}

.h-sg {
  font-family: var(--font-heading);
  margin: 0 0 6px;
}

.subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 56ch;
}

.muted {
  margin: 0 0 12px;
  color: var(--muted);
}

/* Form Elements */
input, textarea, select {
  font-family: var(--font-primary);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(230, 118, 77, 0.1);
}

label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

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

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--clay);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error States */
.error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
}

.success {
  color: #065f46;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 960px) {
  .nav-left, .nav-right {
    display: none;
  }
  
  #site-header {
    grid-template-columns: 1fr;
  }
  
  .brand-center {
    justify-self: center;
  }
  
  .logo {
    width: 32px;
    height: 32px;
  }
  
  .container {
    padding: 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  
  .card {
    padding: 16px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #header-shell, #site-header, .btn-chip, .btn {
    transition: none;
  }
  
  .spinner {
    animation: none;
  }
}

/* ===== COMPREHENSIVE COMPONENT SYSTEM ===== */

/* Button System */
.btn-primary {
  background: var(--coral);
  border: 2px solid var(--coral);
  color: var(--text-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: all var(--transition-normal) ease;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--coral);
  color: var(--coral);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: all var(--transition-normal) ease;
  cursor: pointer;
  min-height: 48px;
}

.btn-secondary:hover {
  background: var(--coral);
  color: var(--text-white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-weight: var(--font-medium);
  font-size: var(--text-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: all var(--transition-normal) ease;
  cursor: pointer;
  min-height: 48px;
}

.btn-ghost:hover {
  background: var(--bg-cream);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-large {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Card System */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal) ease;
}

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

.card-padding {
  padding: var(--space-3);
}

.card-padding-lg {
  padding: var(--space-4);
}

.card-cream {
  background: var(--bg-cream);
}

.card-mint {
  background: var(--bg-mint);
}

.card-lavender {
  background: var(--bg-lavender);
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-coral {
  background: var(--coral);
  color: var(--text-white);
}

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

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

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

.badge-light {
  background: var(--bg-cream);
  color: var(--text-secondary);
}

/* Input System */
.input-group {
  margin-bottom: var(--space-3);
}

.input-label {
  display: block;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.input-field {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  background: var(--bg-card);
  transition: all var(--transition-fast) ease;
  box-sizing: border-box;
}

.input-field:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-light);
}

.input-field.error {
  border-color: var(--error);
  background: #FFF5F5;
}

/* Avatar System */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--coral);
  color: var(--text-white);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  overflow: hidden;
}

.avatar-sm {
  width: 40px;
  height: 40px;
  font-size: var(--text-sm);
}

.avatar-md {
  width: 56px;
  height: 56px;
  font-size: var(--text-lg);
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: var(--text-2xl);
}

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

/* Progress Bar System */
.progress {
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--coral);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow) ease;
}

.progress-large {
  height: 12px;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Spacing Utilities */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }

.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* Typography Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-coral { color: var(--coral); }

/* Animation Classes */
.fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

.slide-up {
  animation: slideUp var(--transition-slow) ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Loading States */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--coral);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-cream) 25%, var(--border-light) 50%, var(--bg-cream) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Notification System */
.notification-bell {
  position: relative;
  background: none;
  border: none;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  color: var(--text-secondary);
}

.notification-bell:hover {
  background: var(--bg-cream);
  color: var(--text-primary);
}

.notification-bell-icon {
  font-size: var(--text-xl);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--coral);
  color: var(--text-white);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 380px;
  max-height: 480px;
  overflow: hidden;
  z-index: var(--z-dropdown);
  border: 1px solid var(--border-light);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast) ease;
}

.notification-dropdown.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.notification-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.mark-all-read {
  color: var(--coral);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.mark-all-read:hover {
  color: var(--coral-hover);
}

.notification-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-item {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  position: relative;
}

.notification-item:hover {
  background: var(--bg-cream);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: var(--coral-light);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: var(--radius-full);
}

.notification-item.unread .notification-content {
  margin-left: var(--space-3);
}

.notification-content {
  display: flex;
  gap: var(--space-3);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-lg);
}

.notification-icon.success {
  background: var(--bg-mint);
  color: var(--success);
}

.notification-icon.warning {
  background: var(--bg-cream);
  color: var(--warning);
}

.notification-icon.info {
  background: var(--bg-lavender);
  color: var(--info);
}

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

.notification-text {
  flex: 1;
  min-width: 0;
}

.notification-message {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: var(--leading-snug);
}

.notification-details {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.notification-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.notification-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.view-all-notifications {
  color: var(--coral);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all var(--transition-fast) ease;
}

.view-all-notifications:hover {
  color: var(--coral-hover);
}

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

.notification-empty-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  border-left: 4px solid var(--coral);
  max-width: 400px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all var(--transition-normal) ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.error {
  border-left-color: var(--error);
}

.toast.info {
  border-left-color: var(--info);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-text {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: var(--leading-snug);
}

.toast-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-lg);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all var(--transition-fast) ease;
  margin-left: var(--space-2);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Mobile Responsive Adjustments for Notifications */
@media (max-width: 768px) {
  .notification-dropdown {
    width: 320px;
    right: var(--space-2);
  }
  
  .toast-container {
    top: var(--space-2);
    right: var(--space-2);
    left: var(--space-2);
  }
  
  .toast {
    max-width: 100%;
    margin: 0;
  }
}

/* Dark Mode Overrides (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Currently using light theme as primary */
}