/* ==========================================
   Loveform Family Dashboard - Design System
   ==========================================
   
   A warm, welcoming design system that reflects
   the care and trust families place in us.
   ========================================== */

/* ==========================================
   1. CSS Variables - Loveform Brand Colors
   ========================================== */
:root {
  /* Primary Brand Colors */
  --loveform-primary: #7C3AED;        /* Warm purple - trust & care */
  --loveform-primary-light: #A78BFA;  /* Lighter purple */
  --loveform-primary-dark: #5B21B6;   /* Darker purple */
  
  /* Secondary Colors */
  --loveform-secondary: #10B981;      /* Growth green - journey & progress */
  --loveform-secondary-light: #34D399;
  --loveform-secondary-dark: #059669;
  
  /* Accent Colors */
  --loveform-accent: #F59E0B;         /* Warm amber - energy & joy */
  --loveform-accent-light: #FCD34D;
  --loveform-accent-dark: #D97706;
  
  /* Neutral Colors */
  --loveform-dark: #1F2937;           /* Professional dark */
  --loveform-gray: #6B7280;           /* Soft gray */
  --loveform-light: #F9FAFB;          /* Clean background */
  --loveform-white: #FFFFFF;
  
  /* Status Colors */
  --loveform-success: #10B981;        /* Positive feedback */
  --loveform-warning: #F59E0B;        /* Gentle warnings */
  --loveform-error: #EF4444;          /* Soft error */
  --loveform-info: #3B82F6;           /* Helpful info */
  
  /* Gradients */
  --loveform-gradient-primary: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  --loveform-gradient-secondary: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  --loveform-gradient-warm: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
  
  /* Shadows */
  --loveform-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --loveform-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --loveform-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --loveform-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --loveform-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --loveform-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --loveform-space-xs: 0.5rem;
  --loveform-space-sm: 1rem;
  --loveform-space-md: 1.5rem;
  --loveform-space-lg: 2rem;
  --loveform-space-xl: 3rem;
  
  /* Border Radius */
  --loveform-radius-sm: 0.375rem;
  --loveform-radius-md: 0.5rem;
  --loveform-radius-lg: 1rem;
  --loveform-radius-xl: 1.5rem;
  --loveform-radius-full: 9999px;
  
  /* Transitions */
  --loveform-transition: all 0.3s ease;
  --loveform-transition-fast: all 0.15s ease;
}

/* ==========================================
   2. Base Styles
   ========================================== */
body {
  font-family: var(--loveform-font-family);
  color: var(--loveform-dark);
  line-height: 1.6;
  background-color: var(--loveform-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--loveform-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--loveform-dark);
}

/* ==========================================
   3. Hero Section - Warm Welcome
   ========================================== */
.hero-section {
  background: var(--loveform-gradient-primary);
  color: var(--loveform-white);
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 80%, var(--loveform-white) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--loveform-white) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: var(--loveform-space-xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: var(--loveform-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--loveform-space-md);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--loveform-space-md);
  background: linear-gradient(to right, var(--loveform-white) 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--loveform-space-lg);
  font-weight: 400;
}

/* ==========================================
   4. Family Overview Cards
   ========================================== */
.family-overview-section {
  padding: var(--loveform-space-xl) 0;
  background: var(--loveform-light);
}

.overview-card {
  background: var(--loveform-white);
  border-radius: var(--loveform-radius-xl);
  padding: var(--loveform-space-lg);
  box-shadow: var(--loveform-shadow-lg);
  transition: var(--loveform-transition);
  height: 100%;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--loveform-shadow-xl);
  border-color: rgba(124, 58, 237, 0.2);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--loveform-gradient-primary);
  border-radius: var(--loveform-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--loveform-space-md);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.card-icon i {
  font-size: 28px;
  color: var(--loveform-white);
}

.card-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--loveform-space-md);
  color: var(--loveform-dark);
}

.card-content {
  color: var(--loveform-gray);
}

/* Child and Driver Items */
.child-item,
.driver-item {
  padding: var(--loveform-space-sm) 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  transition: var(--loveform-transition-fast);
}

.child-item:hover,
.driver-item:hover {
  padding-left: var(--loveform-space-xs);
  border-bottom-color: var(--loveform-primary-light);
}

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

.child-info strong,
.driver-info strong {
  color: var(--loveform-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.text-muted {
  color: var(--loveform-gray);
  font-size: 0.875rem;
}

/* ==========================================
   5. Buttons - Encouraging Actions
   ========================================== */
.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--loveform-radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: var(--loveform-transition);
  margin: 0.5rem;
  font-size: 1rem;
}

.btn-hero-primary {
  background: var(--loveform-white);
  color: var(--loveform-primary);
  box-shadow: var(--loveform-shadow-md);
}

.btn-hero-primary:hover {
  background: var(--loveform-light);
  transform: translateY(-2px);
  box-shadow: var(--loveform-shadow-lg);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--loveform-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Small buttons */
.btn-primary,
.btn-outline-primary {
  padding: 0.5rem 1rem;
  border-radius: var(--loveform-radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--loveform-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
}

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

.btn-primary:hover {
  background: var(--loveform-primary-dark);
  transform: translateY(-1px);
}

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

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

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* ==========================================
   6. Schedule & Status Elements
   ========================================== */
.today-schedule-card {
  background: var(--loveform-white);
  border-radius: var(--loveform-radius-xl);
  padding: var(--loveform-space-lg);
  box-shadow: var(--loveform-shadow-lg);
  margin-top: var(--loveform-space-lg);
}

.schedule-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--loveform-space-lg);
  color: var(--loveform-dark);
  display: flex;
  align-items: center;
}

.schedule-title i {
  color: var(--loveform-primary);
  margin-right: var(--loveform-space-sm);
}

.timeline-item {
  display: flex;
  align-items: center;
  padding: var(--loveform-space-md) 0;
  border-left: 2px solid var(--loveform-primary-light);
  margin-left: 1rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  background: var(--loveform-primary);
  border-radius: var(--loveform-radius-full);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.timeline-time {
  min-width: 140px;
  font-weight: 600;
  color: var(--loveform-primary);
  margin-left: var(--loveform-space-lg);
}

.timeline-details {
  margin-left: var(--loveform-space-md);
}

.timeline-details strong {
  display: block;
  color: var(--loveform-dark);
  margin-bottom: 0.25rem;
}

/* ==========================================
   7. Status Indicators
   ========================================== */
.text-success {
  color: var(--loveform-success);
  font-weight: 500;
}

.text-warning {
  color: var(--loveform-warning);
  font-weight: 500;
}

.text-danger {
  color: var(--loveform-error);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--loveform-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--loveform-success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--loveform-warning);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--loveform-info);
}

/* ==========================================
   8. Trust Indicators
   ========================================== */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: var(--loveform-space-md);
  margin-top: var(--loveform-space-lg);
}

.trust-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.trust-item i {
  margin-right: var(--loveform-space-xs);
  font-size: 1rem;
}

/* ==========================================
   9. Hero Stats
   ========================================== */
.hero-stats {
  display: flex;
  gap: var(--loveform-space-lg);
  margin: var(--loveform-space-lg) 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   10. Floating Cards
   ========================================== */
.floating-card {
  position: absolute;
  background: var(--loveform-white);
  padding: var(--loveform-space-md);
  border-radius: var(--loveform-radius-lg);
  box-shadow: var(--loveform-shadow-xl);
  z-index: 5;
}

.floating-card-1 {
  top: 20%;
  right: -100px;
  transform: rotate(-3deg);
}

.floating-card-2 {
  bottom: 20%;
  right: -80px;
  transform: rotate(3deg);
}

@media (max-width: 1200px) {
  .floating-card {
    display: none;
  }
}

/* ==========================================
   11. Loading States
   ========================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--loveform-transition);
}

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

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--loveform-primary-light);
  border-top-color: var(--loveform-primary);
  border-radius: var(--loveform-radius-full);
  animation: spin 1s linear infinite;
}

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

/* ==========================================
   12. Empty States - Encouraging
   ========================================== */
.empty-state {
  text-align: center;
  padding: var(--loveform-space-xl);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--loveform-gradient-primary);
  border-radius: var(--loveform-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--loveform-space-md);
}

.empty-state-icon i {
  font-size: 32px;
  color: var(--loveform-white);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--loveform-dark);
  margin-bottom: var(--loveform-space-sm);
}

.empty-state-message {
  color: var(--loveform-gray);
  margin-bottom: var(--loveform-space-lg);
}

/* ==========================================
   13. Enhanced Responsive Design
   ========================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-stats {
    justify-content: space-around;
  }
  
  .overview-card {
    margin-bottom: var(--loveform-space-md);
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    margin: 0.25rem 0;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    padding-left: 2rem;
  }
  
  .timeline-time {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
  
  /* Enhanced mobile optimizations */
  .schedule-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .schedule-tabs .nav-item {
    flex-shrink: 0;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .quick-actions-panel {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .quick-action-btn {
    flex: 1;
    margin: 0 0.25rem;
    padding: 0.75rem 0.5rem;
  }
  
  .quick-action-btn span {
    font-size: 0.75rem;
  }
  
  /* Touch-friendly targets */
  .btn, .quick-action-btn, .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved scroll behavior */
  .week-schedule {
    max-height: 300px;
  }
  
  /* Swipe gestures for cards */
  .overview-card {
    touch-action: pan-y;
  }
}

/* PWA-specific styles */
@media (display-mode: standalone) {
  .hero-section {
    padding-top: env(safe-area-inset-top);
  }
  
  .quick-actions-panel {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-fade-in,
  .animate-slide-in,
  .animate-pulse,
  .animate-bounce {
    animation: none;
  }
}

/* ==========================================
   14. Enhanced Animations & Interactions
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
  animation: slideInRight 0.4s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 1s ease-in-out;
}

/* Loading shimmer effect */
.loading-shimmer {
  background: linear-gradient(90deg, 
    var(--loveform-light) 25%, 
    rgba(124, 58, 237, 0.1) 50%, 
    var(--loveform-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Smooth hover effects */
a,
button {
  transition: var(--loveform-transition);
}

/* Enhanced button hover states */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Card hover enhancements */
.overview-card {
  position: relative;
  overflow: hidden;
}

.overview-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--loveform-gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.overview-card:hover::after {
  opacity: 0.05;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--loveform-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* Staggered animations for card grids */
.overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-card:nth-child(3) { animation-delay: 0.3s; }
.overview-card:nth-child(4) { animation-delay: 0.4s; }

/* Quick action button animations */
.quick-action-btn {
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-btn:hover {
  transform: translateX(-8px) scale(1.05);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.quick-action-btn:active {
  transform: translateX(-6px) scale(0.98);
}

/* Notification entrance animations */
.loveform-notification {
  animation: slideInRight 0.3s ease-out;
}

.loveform-notification.show {
  animation: slideInRight 0.3s ease-out;
}

/* Timeline item hover effects */
.timeline-item {
  transition: all 0.2s ease;
}

.timeline-item:hover {
  padding-left: calc(var(--loveform-space-lg) + 4px);
  background: rgba(124, 58, 237, 0.02);
  border-radius: var(--loveform-radius-md);
}

/* ==========================================
   15. Utility Classes
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--loveform-space-xs); }
.mt-2 { margin-top: var(--loveform-space-sm); }
.mt-3 { margin-top: var(--loveform-space-md); }
.mt-4 { margin-top: var(--loveform-space-lg); }
.mt-5 { margin-top: var(--loveform-space-xl); }

.mb-1 { margin-bottom: var(--loveform-space-xs); }
.mb-2 { margin-bottom: var(--loveform-space-sm); }
.mb-3 { margin-bottom: var(--loveform-space-md); }
.mb-4 { margin-bottom: var(--loveform-space-lg); }
.mb-5 { margin-bottom: var(--loveform-space-xl); }

.me-1 { margin-right: var(--loveform-space-xs); }
.me-2 { margin-right: var(--loveform-space-sm); }
.me-3 { margin-right: var(--loveform-space-md); }

.ms-1 { margin-left: var(--loveform-space-xs); }
.ms-2 { margin-left: var(--loveform-space-sm); }
.ms-3 { margin-left: var(--loveform-space-md); }

/* Hide/Show utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox utilities */
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--loveform-space-sm); }
.gap-3 { gap: var(--loveform-space-md); }

/* ==========================================
   16. Notifications
   ========================================== */
.loveform-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--loveform-white);
  padding: var(--loveform-space-md);
  border-radius: var(--loveform-radius-lg);
  box-shadow: var(--loveform-shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--loveform-space-sm);
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  transition: var(--loveform-transition);
  z-index: 9999;
}

.loveform-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.loveform-notification.success {
  border-left: 4px solid var(--loveform-success);
}

.loveform-notification.info {
  border-left: 4px solid var(--loveform-info);
}

.loveform-notification.warning {
  border-left: 4px solid var(--loveform-warning);
}

.loveform-notification.error {
  border-left: 4px solid var(--loveform-error);
}

.loveform-notification i {
  font-size: 1.25rem;
}

.loveform-notification.success i {
  color: var(--loveform-success);
}

.loveform-notification.info i {
  color: var(--loveform-info);
}

/* ==========================================
   17. Driver Photos & Additional Styles
   ========================================== */
.driver-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--loveform-radius-full);
  object-fit: cover;
  margin-right: var(--loveform-space-sm);
}

.driver-photo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--loveform-radius-full);
  background: var(--loveform-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--loveform-space-sm);
}

.driver-photo-placeholder i {
  color: var(--loveform-white);
  font-size: 1.25rem;
}

.driver-info {
  display: flex;
  align-items: center;
  width: 100%;
}

.driver-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.driver-actions {
  margin-left: auto;
}

/* Day schedule cards */
.day-schedule-card {
  background: var(--loveform-light);
  padding: var(--loveform-space-md);
  border-radius: var(--loveform-radius-md);
}

.day-schedule-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--loveform-space-sm);
  color: var(--loveform-primary);
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: var(--loveform-space-sm);
  font-size: 0.875rem;
}

.schedule-item .time {
  color: var(--loveform-gray);
  font-size: 0.8125rem;
}

/* ==========================================
   18. Quick Actions Panel
   ========================================== */
.quick-actions-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--loveform-space-sm);
  z-index: 1000;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: var(--loveform-space-xs);
  background: var(--loveform-white);
  border: 1px solid var(--loveform-primary-light);
  border-radius: var(--loveform-radius-full);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--loveform-primary);
  box-shadow: var(--loveform-shadow-lg);
  transition: var(--loveform-transition);
  cursor: pointer;
  white-space: nowrap;
}

.quick-action-btn:hover {
  background: var(--loveform-primary);
  color: var(--loveform-white);
  transform: translateX(-4px);
  box-shadow: var(--loveform-shadow-xl);
}

.quick-action-btn i {
  font-size: 1rem;
}

.quick-action-btn span {
  display: none;
}

.quick-action-btn:hover span {
  display: inline;
}

@media (max-width: 768px) {
  .quick-actions-panel {
    bottom: 1rem;
    right: 1rem;
  }
  
  .quick-action-btn {
    padding: 0.625rem;
    border-radius: var(--loveform-radius-full);
  }
  
  .quick-action-btn span {
    display: none !important;
  }
}

/* ==========================================
   19. Message Modal Styles
   ========================================== */
.modal-content {
  border: none;
  border-radius: var(--loveform-radius-xl);
  box-shadow: var(--loveform-shadow-xl);
}

.modal-header {
  background: var(--loveform-gradient-primary);
  color: var(--loveform-white);
  border-radius: var(--loveform-radius-xl) var(--loveform-radius-xl) 0 0;
  border-bottom: none;
  padding: var(--loveform-space-lg);
}

.modal-title {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.modal-header .btn-close {
  background: transparent;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: var(--loveform-space-lg);
}

.message-templates {
  padding: var(--loveform-space-md);
  background: var(--loveform-light);
  border-radius: var(--loveform-radius-lg);
}

.message-templates .btn-outline-primary {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.25rem;
}

.message-templates .btn-outline-primary:hover {
  transform: translateY(-1px);
}

.form-control:focus {
  border-color: var(--loveform-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
}

/* ==========================================
   20. Additional Interactive Elements
   ========================================== */
.schedule-summary {
  padding: var(--loveform-space-sm);
  background: var(--loveform-light);
  border-radius: var(--loveform-radius-md);
  margin-bottom: var(--loveform-space-md);
}

.week-schedule {
  max-height: 400px;
  overflow-y: auto;
  padding-right: var(--loveform-space-xs);
}

.week-schedule::-webkit-scrollbar {
  width: 6px;
}

.week-schedule::-webkit-scrollbar-track {
  background: var(--loveform-light);
  border-radius: var(--loveform-radius-full);
}

.week-schedule::-webkit-scrollbar-thumb {
  background: var(--loveform-primary-light);
  border-radius: var(--loveform-radius-full);
}

.week-schedule::-webkit-scrollbar-thumb:hover {
  background: var(--loveform-primary);
}

/* ==========================================
   21. Schedule Management Section
   ========================================== */
.schedule-management-section {
  padding: var(--loveform-space-xl) 0;
  background: var(--loveform-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--loveform-dark);
  margin-bottom: var(--loveform-space-xl);
}

.schedule-editor-card,
.quick-schedule-card,
.upcoming-changes-card {
  background: var(--loveform-white);
  border-radius: var(--loveform-radius-xl);
  padding: var(--loveform-space-lg);
  box-shadow: var(--loveform-shadow-lg);
  height: 100%;
}

.schedule-tabs .nav-link {
  color: var(--loveform-gray);
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  margin-right: 0.5rem;
  transition: var(--loveform-transition);
}

.schedule-tabs .nav-link:hover {
  color: var(--loveform-primary);
  border-bottom-color: var(--loveform-primary-light);
}

.schedule-tabs .nav-link.active {
  color: var(--loveform-primary);
  background: none;
  border-bottom-color: var(--loveform-primary);
}

.schedule-day-editor {
  padding: var(--loveform-space-md);
  background: var(--loveform-light);
  border-radius: var(--loveform-radius-lg);
}

.schedule-time-slot {
  padding: var(--loveform-space-md);
  background: var(--loveform-white);
  border-radius: var(--loveform-radius-md);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.schedule-time-slot:hover {
  border-color: var(--loveform-primary-light);
}

.quick-action-item {
  padding: var(--loveform-space-md);
  background: var(--loveform-light);
  border-radius: var(--loveform-radius-lg);
  transition: var(--loveform-transition);
}

.quick-action-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--loveform-shadow-md);
}

.quick-action-item h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--loveform-dark);
}

.upcoming-changes-card {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--loveform-primary-light);
}

.change-item {
  padding: var(--loveform-space-sm);
  margin-bottom: var(--loveform-space-sm);
  background: var(--loveform-white);
  border-radius: var(--loveform-radius-md);
  display: flex;
  align-items: center;
  gap: var(--loveform-space-sm);
}

.change-date {
  font-weight: 600;
  color: var(--loveform-primary);
  min-width: 80px;
}

.change-description {
  color: var(--loveform-gray);
  font-size: 0.875rem;
}