/* Dark Theme Variables and Base Styles - Matching Sidebar Theme */

:root {
  /* Color Variables matching Sidebar */
  --bg-primary: #1a202c;          /* Main background (matches sidebar) */
  --bg-secondary: #2d3748;        /* Secondary background */
  --bg-tertiary: #4a5568;         /* Card backgrounds */
  --bg-header: #07192e;           /* Header background (darker blue) */
  --bg-teal: #2d7d7d;            /* Teal accents */
  --bg-teal-dark: #1e5a5a;       /* Dark teal */
  
  /* Text Colors */
  --text-primary: #ffffff;         /* Primary white text */
  --text-secondary: #e2e8f0;       /* Secondary light text */
  --text-muted: #a0aec0;          /* Muted text */
  --text-accent: #4fd1c7;         /* Teal accent text */
  
  /* Border Colors */
  --border-primary: #4a5568;       /* Primary borders */
  --border-secondary: #2d3748;     /* Secondary borders */
  --border-accent: #4fd1c7;        /* Accent borders */
  
  /* Status Colors */
  --success: #38a169;
  --warning: #d69e2e;
  --error: #e53e3e;
  --info: #3182ce;
}

/* Base Dark Theme Styles */
.dark-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.dark-theme-header {
  background-color: var(--bg-header);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-primary);
}

.dark-theme-header-bg {
  background: linear-gradient(90deg, #151a23 0%, #151e33 100%);
  border-bottom: 1px solid #2d3748;
}

.dark-theme-content {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.dark-theme-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.dark-theme-card:hover {
  background-color: #5a6173;
  border-color: var(--border-accent);
}

/* Button Styles */
.dark-btn-primary {
  background-color: var(--bg-teal);
  color: var(--text-primary);
  border: 1px solid var(--bg-teal);
}

.dark-btn-primary:hover {
  background-color: var(--bg-teal-dark);
  border-color: var(--bg-teal-dark);
}

.dark-btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.dark-btn-secondary:hover {
  background-color: #5a6173;
  border-color: var(--border-accent);
}

/* Form Input Styles */
.dark-input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.dark-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
}

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

/* Vibrant Form Input Styles */
.dark-theme-input {
  background: linear-gradient(145deg, #2d3748, #4a5568);
  border: 2px solid #4a5568;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2), inset -2px -2px 4px rgba(74, 85, 104, 0.1);
}

.dark-theme-input:focus {
  border-color: #4fd1c7;
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.2), inset 2px 2px 4px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, #2c5282, #3182ce);
  outline: none;
}

.dark-theme-input::placeholder {
  color: #a0aec0;
}

.dark-theme-input:hover {
  border-color: #68d391;
  background: linear-gradient(145deg, #2c5282, #4a5568);
}

/* Ensure form text visibility and consistency */
.dark-theme-input option {
  background-color: #2d3748;
  color: #ffffff;
}

.dark-theme-input select {
  background-color: #2d3748;
  color: #ffffff;
  border: 2px solid #4a5568;
}

.dark-theme-input select option {
  background-color: #2d3748;
  color: #ffffff;
}

/* Fix input text visibility specifically */
input.dark-theme-input, 
textarea.dark-theme-input, 
select.dark-theme-input {
  color: #ffffff !important;
  background: linear-gradient(145deg, #2d3748, #4a5568) !important;
}

input.dark-theme-input:focus, 
textarea.dark-theme-input:focus, 
select.dark-theme-input:focus {
  color: #ffffff !important;
  background: linear-gradient(145deg, #2c5282, #3182ce) !important;
}

/* Ensure placeholder is visible but distinct */
input.dark-theme-input::placeholder,
textarea.dark-theme-input::placeholder {
  color: #a0aec0 !important;
  opacity: 0.8;
}

/* Fix checkbox styling */
input[type="checkbox"] {
  accent-color: #4fd1c7;
}

/* Fix color input styling */
input[type="color"] {
  background: transparent;
  border: 2px solid #4a5568;
  cursor: pointer;
}

input[type="color"]:hover {
  border-color: #68d391;
}

/* Table Styles */
.dark-table {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.dark-table th {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
}

.dark-table td {
  border-bottom: 1px solid var(--border-secondary);
}

.dark-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

/* Modal Styles */
.dark-modal {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.dark-modal-backdrop {
  background-color: rgba(26, 32, 44, 0.8);
}

/* Dropdown Styles */
.dark-dropdown {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.dark-dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-accent);
}

/* Status Badge Styles */
.dark-badge-success {
  background-color: var(--success);
  color: white;
}

.dark-badge-warning {
  background-color: var(--warning);
  color: white;
}

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

.dark-badge-info {
  background-color: var(--info);
  color: white;
}

/* Statistics Card Styles */
.dark-stat-card {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.dark-stat-icon {
  background-color: var(--bg-teal);
  color: var(--text-primary);
}

/* Universal Scrollbar Styles for All Users */
.dark-scrollbar::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar,
#desktop-nav::-webkit-scrollbar,
#mobile-nav::-webkit-scrollbar,
nav::-webkit-scrollbar {
  width: 6px !important;
}

.dark-scrollbar::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track,
#desktop-nav::-webkit-scrollbar-track,
#mobile-nav::-webkit-scrollbar-track,
nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 3px !important;
}

.dark-scrollbar::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb,
#desktop-nav::-webkit-scrollbar-thumb,
#mobile-nav::-webkit-scrollbar-thumb,
nav::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9) !important;
  border-radius: 3px !important;
  transition: all 0.3s ease !important;
}

.dark-scrollbar::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover,
#desktop-nav::-webkit-scrollbar-thumb:hover,
#mobile-nav::-webkit-scrollbar-thumb:hover,
nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
}

/* Firefox Scrollbar Support */
.dark-scrollbar,
.custom-scrollbar,
#desktop-nav,
#mobile-nav,
nav {
  scrollbar-width: thin !important;
  scrollbar-color: #14b8a6 rgba(255, 255, 255, 0.05) !important;
}

/* Navigation and scroll fixes */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Ensure sidebar navigation has proper overflow and scrollbar visibility */
nav.overflow-y-auto,
.overflow-y-auto,
.flex-1.overflow-y-auto {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Force scrollbar visibility when content overflows */
nav[id*="nav"] {
  overflow-y: auto !important;
  max-height: 100% !important;
}

/* Additional scrollbar targeting for sidebar containers */
.desktop-sidebar nav,
.mobile-sidebar-container nav,
.sidebar nav,
[class*="sidebar"] nav {
  scrollbar-width: thin !important;
  scrollbar-color: #14b8a6 rgba(255, 255, 255, 0.05) !important;
}

.desktop-sidebar nav::-webkit-scrollbar,
.mobile-sidebar-container nav::-webkit-scrollbar,
.sidebar nav::-webkit-scrollbar,
[class*="sidebar"] nav::-webkit-scrollbar {
  width: 6px !important;
}

.desktop-sidebar nav::-webkit-scrollbar-track,
.mobile-sidebar-container nav::-webkit-scrollbar-track,
.sidebar nav::-webkit-scrollbar-track,
[class*="sidebar"] nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 3px !important;
}

.desktop-sidebar nav::-webkit-scrollbar-thumb,
.mobile-sidebar-container nav::-webkit-scrollbar-thumb,
.sidebar nav::-webkit-scrollbar-thumb,
[class*="sidebar"] nav::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9) !important;
  border-radius: 3px !important;
  transition: all 0.3s ease !important;
}

.desktop-sidebar nav::-webkit-scrollbar-thumb:hover,
.mobile-sidebar-container nav::-webkit-scrollbar-thumb:hover,
.sidebar nav::-webkit-scrollbar-thumb:hover,
[class*="sidebar"] nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
}

/* Ensure main content doesn't interfere with navigation */
.dark-theme main {
  position: relative;
  z-index: 1;
}

/* Prevent scroll jumping on navigation */
.nav-item {
  scroll-behavior: smooth;
}

/* Fix potential positioning issues */
.flex.h-screen {
  overflow: hidden;
}

.flex-1.flex.flex-col.overflow-hidden {
  height: 100vh;
}

/* Smooth transitions for content changes */
.dark-theme .flex-1.overflow-y-auto {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #4a5568 #2d3748;
}

/* Additional hover color variations */
.bg-gray-650 { background-color: #4a5568; }
.bg-gray-750 { background-color: #374151; }
.hover\:from-gray-650:hover { --tw-gradient-from: #4a5568; }
.hover\:to-gray-750:hover { --tw-gradient-to: #374151; }

/* Enhanced red hover states */
.hover\:bg-red-900\/30:hover {
  background-color: rgba(127, 29, 29, 0.3);
}

/* Enhanced Vibrant Color Utilities for Colorful UI */

/* Vibrant Gradient Backgrounds */
.bg-vibrant-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #4338ca 100%), 
              radial-gradient(circle at 30% 30%, #60a5fa 0%, transparent 50%);
}

.bg-vibrant-emerald {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 50%, #0891b2 100%), 
              radial-gradient(circle at 70% 20%, #34d399 0%, transparent 50%);
}

.bg-vibrant-purple {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #c026d3 100%), 
              radial-gradient(circle at 80% 70%, #a855f7 0%, transparent 50%);
}

.bg-vibrant-red {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #ef4444 100%), 
              radial-gradient(circle at 60% 40%, #f87171 0%, transparent 50%);
}

.bg-vibrant-orange {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #f97316 100%), 
              radial-gradient(circle at 40% 60%, #fb923c 0%, transparent 50%);
}

/* Dynamic Main Content Backgrounds */
.bg-dynamic-primary {
  background: linear-gradient(135deg, #1a202c 0%, #4c1d95 25%, #7c2d12 50%, #1e40af 75%, #1a202c 100%), 
              radial-gradient(circle at 20% 50%, #dc2626 0%, transparent 70%), 
              radial-gradient(circle at 80% 20%, #059669 0%, transparent 70%), 
              radial-gradient(circle at 60% 80%, #7c3aed 0%, transparent 70%);
  background-blend-mode: overlay, normal, normal, normal;
}

.bg-dynamic-secondary {
  background: linear-gradient(135deg, #1a202c 0%, #059669 25%, #7c3aed 50%, #dc2626 75%, #1a202c 100%), 
              radial-gradient(circle at 40% 60%, #2563eb 0%, transparent 70%), 
              radial-gradient(circle at 60% 20%, #16a34a 0%, transparent 70%), 
              radial-gradient(circle at 80% 80%, #9333ea 0%, transparent 60%);
  background-blend-mode: overlay, normal, normal, normal;
}

.bg-dynamic-tertiary {
  background: linear-gradient(135deg, #1a202c 0%, #7c2d12 25%, #059669 50%, #7c3aed 75%, #1a202c 100%), 
              radial-gradient(circle at 30% 40%, #dc2626 0%, transparent 70%), 
              radial-gradient(circle at 70% 80%, #2563eb 0%, transparent 70%), 
              radial-gradient(circle at 50% 20%, #16a34a 0%, transparent 60%);
  background-blend-mode: overlay, normal, normal, normal;
}

/* Enhanced Card Backgrounds */
.bg-colorful-card {
  background: linear-gradient(135deg, #334155 0%, #475569 30%, #1e293b 70%, #0f172a 100%), 
              radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%);
  border: 2px solid #475569;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.bg-colorful-card-alt {
  background: linear-gradient(135deg, #334155 0%, #475569 30%, #1e293b 70%, #0f172a 100%), 
              radial-gradient(circle at 40% 70%, #059669 0%, transparent 80%);
  border: 2px solid #475569;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Vibrant Button Gradients */
.btn-vibrant-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #4338ca 100%);
  border: 2px solid #3b82f6;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
  transition: all 0.3s ease;
}

.btn-vibrant-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
}

.btn-vibrant-success {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 50%, #0891b2 100%);
  border: 2px solid #10b981;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
  transition: all 0.3s ease;
}

.btn-vibrant-success:hover {
  background: linear-gradient(135deg, #059669 0%, #0f766e 50%, #0e7490 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
}

/* Enhanced Input Styling */
.input-vibrant {
  background: linear-gradient(to right, #475569, #64748b);
  border: 2px solid #64748b;
  color: white;
  transition: all 0.3s ease;
}

.input-vibrant:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
  background: linear-gradient(to right, #475569, #64748b);
}

/* Animated Gradient Backgrounds */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-animated-gradient {
  background: linear-gradient(-45deg, #3b82f6, #10b981, #f59e0b, #ef4444);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Colorful Status Indicators */
.status-active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.status-pending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.status-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Enhanced Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Vibrant Text Colors */
.text-vibrant-blue { color: #60a5fa; }
.text-vibrant-emerald { color: #34d399; }
.text-vibrant-purple { color: #a855f7; }
.text-vibrant-red { color: #f87171; }
.text-vibrant-orange { color: #fb923c; }
.text-vibrant-yellow { color: #fbbf24; }

/* Modern Card Styles */
.modern-card {
  background: linear-gradient(145deg, #1e293b, #334155);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 9px 9px 16px #0f172a, -9px -9px 16px #2d3748;
  border: 1px solid #475569;
}

/* Enhanced Button Styles */
.dark-theme-button-primary {
  background: linear-gradient(135deg, #2d7d7d, #1e5a5a);
  color: white;
  border: 2px solid #4fd1c7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(79, 209, 199, 0.2);
}

.dark-theme-button-primary:hover {
  background: linear-gradient(135deg, #4fd1c7, #2d7d7d);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(79, 209, 199, 0.3);
}

.dark-theme-button-secondary {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  color: white;
  border: 2px solid #68d391;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(104, 211, 145, 0.2);
}

.dark-theme-button-secondary:hover {
  background: linear-gradient(135deg, #68d391, #4a5568);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(104, 211, 145, 0.3);
}

/* Remove bg-gradient-to-r styles and replace with solid colors */
.bg-gradient-to-r {
  background: none !important;
}

/* Button color replacements */
.bg-teal-600 { 
  background-color: #0d9488 !important; 
}
.bg-teal-700 { 
  background-color: #0f766e !important; 
}
.hover\:bg-teal-500:hover { 
  background-color: #14b8a6 !important; 
}
.hover\:bg-teal-600:hover { 
  background-color: #0d9488 !important; 
}

.bg-green-600 { 
  background-color: #16a34a !important; 
}
.bg-green-700 { 
  background-color: #15803d !important; 
}
.hover\:bg-green-500:hover { 
  background-color: #22c55e !important; 
}

.bg-red-600 { 
  background-color: #dc2626 !important; 
}
.bg-red-700 { 
  background-color: #b91c1c !important; 
}
.hover\:bg-red-500:hover { 
  background-color: #ef4444 !important; 
}

.bg-yellow-600 { 
  background-color: #ca8a04 !important; 
}
.bg-yellow-700 { 
  background-color: #a16207 !important; 
}

.bg-blue-600 { 
  background-color: #2563eb !important; 
}
.bg-blue-700 { 
  background-color: #1d4ed8 !important; 
}
.bg-blue-800 { 
  background-color: #1e40af !important; 
}

.bg-gray-600 { 
  background-color: #4b5563 !important; 
}
.bg-gray-700 { 
  background-color: #374151 !important; 
}
.bg-gray-800 { 
  background-color: #1f2937 !important; 
}
.hover\:bg-gray-600:hover { 
  background-color: #4b5563 !important; 
}
.hover\:bg-gray-500:hover { 
  background-color: #6b7280 !important; 
}

/* Comprehensive form text visibility fixes */
input, textarea, select {
  color: #ffffff !important;
}

input:focus, textarea:focus, select:focus {
  color: #ffffff !important;
}

/* Ensure Bootstrap form controls work with dark theme */
.form-control, 
.form-select,
input[type="text"],
input[type="email"], 
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
textarea,
select {
  background-color: #374151 !important;
  border: 2px solid #4b5563 !important;
  color: #ffffff !important;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  background-color: #1e40af !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

/* Placeholder styling */
::placeholder {
  color: #9ca3af !important;
  opacity: 0.8;
}

/* Option styling for select elements */
option {
  background-color: #374151 !important;
  color: #ffffff !important;
}

/* Form labels */
.form-label,
label {
  color: #22d3ee !important;
  font-weight: 500;
}

/* Ensure buttons are consistently styled */
button, .btn {
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Card hover effects without gradients */
.card:hover,
.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Event-reminders page specific fixes */
.event-reminders-main {
  min-height: 400px;
  display: block !important;
}

/* Ensure content is always visible */
main[style*="background: linear-gradient"] {
  display: block !important;
  visibility: visible !important;
}

/* Override any gradient hiding */
[style*="background: linear-gradient"] {
  display: block !important;
}

[ng-if].ng-hide {
  display: none !important;
}

/* Additional form input fixes for better text visibility */
.dark-theme-input, 
input[type="text"],
input[type="email"], 
input[type="password"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
  border: 2px solid #6b7280 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

.dark-theme-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%) !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1) !important;
  color: #ffffff !important;
}

/* Placeholder text visibility */
.dark-theme-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #9ca3af !important;
  opacity: 0.8 !important;
}

/* Status page specific form fixes */
.status-form input,
.status-form textarea,
.status-form select {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
  border: 2px solid #4b5563 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.status-form input:focus,
.status-form textarea:focus,
.status-form select:focus {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2) !important;
  color: #ffffff !important;
}

/* Line clamp utilities for text truncation */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Event card specific improvements */
.event-card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .event-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .event-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-card {
  background: linear-gradient(135deg, #232b3b 0%, #1e2533 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 280px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* Remove width: 100% or flex-basis: 100% if present */
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 209, 199, 0.05) 0%, rgba(34, 211, 238, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.event-card:hover::before {
  opacity: 1;
}

.event-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
}

.event-card > * {
  position: relative;
  z-index: 1;
}

/* Event title styling */
.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.event-card:hover .event-title {
  color: #22d3ee;
}

/* Date container styling */
.event-date-container {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

/* Status badge improvements */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.3s ease;
}

.status-badge.configured {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
}

.status-badge.not-configured {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.5);
}

/* Arrow icon styling */
.arrow-icon {
  color: #22d3ee;
  transition: all 0.3s ease;
}

.event-card:hover .arrow-icon {
  color: #67e8f9;
  transform: translateX(0.25rem);
}

/* Reminder Card Styles */
.reminder-card {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: 0 4px 24px 0 #00000044;
  border-radius: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.reminder-card:hover {
  background: #5a6173 !important;
  box-shadow: 0 8px 32px 0 #0891b233, 0 1.5px 6px 0 #00000022;
  transform: translateY(-2px) scale(1.01);
}

.reminder-card h3,
.reminder-card label {
  color: var(--text-primary) !important;
}

.reminder-card textarea,
.reminder-card select {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-accent) !important;
}

.reminder-card button {
  background: var(--bg-teal) !important;
  color: var(--text-primary) !important;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px 0 #00000022;
  transition: background 0.2s;
}

.reminder-card button:hover {
  background: var(--bg-teal-dark) !important;
}

/* Mobile Optimizations for Enrollments Page */
@media (max-width: 768px) {
  /* CRITICAL: Hide ALL sidebar hamburger buttons on enrollments page */
  body.enrollments-page .mobile-menu-btn,
  body.enrollments-page button[aria-label="Open sidebar"],
  .enrollments-page .mobile-menu-btn,
  .enrollments-page button[aria-label="Open sidebar"],
  .enrollments-page .fa-bars {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Prevent any fixed positioned elements from interfering */
  body.enrollments-page .fixed {
    position: static !important;
  }
  
  body.enrollments-page .fixed.enrollments-header {
    position: relative !important;
  }
  
  /* Header positioning and z-index */
  .enrollments-header {
    padding: 12px 16px !important;
    min-height: 56px !important;
    position: relative !important;
    z-index: 1000 !important;
    background-color: #1a202c !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-bottom: 1px solid white !important;
  }
  
  /* Ensure back button replaces hamburger position */
  .enrollments-header button:first-child {
    background-color: #374151 !important;
    border: 1px solid white !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1000 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
  }
  
  /* Back button icon sizing */
  .enrollments-header button:first-child svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  /* Title positioning and sizing */
  .enrollments-header h1 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    flex: 1 !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 1000 !important;
    margin-left: 8px !important;
    padding-left: 0 !important;
  }
  
  /* Button container positioning */
  .enrollments-header .flex-shrink-0 {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    max-width: 50% !important;
    position: relative !important;
    z-index: 1000 !important;
  }
  
  .enrollments-header .flex-shrink-0::-webkit-scrollbar {
    display: none !important;
  }
  
  /* Action button styling with white borders */
  .enrollments-header .flex-shrink-0 button {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1000 !important;
    border-radius: 8px !important;
    border: 1px solid white !important;
  }
  
  /* Icon sizing for mobile - larger icons */
  .enrollments-header button i {
    font-size: 18px !important;
  }
  
  /* Force proper header layout */
  .enrollments-header > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1000 !important;
    gap: 8px !important;
  }
  
  /* Left section (back button + title) */
  .enrollments-header > div > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1000 !important;
  }
  
  /* Right section (action buttons) */
  .enrollments-header > div > div:last-child {
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1000 !important;
  }
}

/* APPLY WHITE BORDERS ONLY TO ACTION BUTTONS ON SPECIFIC PAGES - BUT NOT HEADER-CREATE-BTN */
.enrollments-page button[ng-click*="openEnrollModal"]:not(.header-create-btn),
.enrollments-page button[ng-click*="bulkResumeAll"]:not(.header-create-btn),
.enrollments-page button[ng-click*="bulkUnenrollAll"]:not(.header-create-btn),
.enrollments-page button[ng-click*="exportEnrollments"]:not(.header-create-btn),
.enrollments-page button[type="submit"]:not(.header-create-btn) {
  border: 1px solid white !important;
}

/* APPLY WHITE BORDERS TO SEQUENCES PAGE ACTION BUTTONS - BUT NOT HEADER-CREATE-BTN */
.sequences-page button[ng-click*="createSequence"]:not(.header-create-btn),
.sequences-page button[ng-click*="editSequence"]:not(.header-create-btn),
.sequences-page button[type="submit"]:not(.header-create-btn) {
  border: 1px solid white !important;
}

/* APPLY WHITE BORDERS TO SCHEDULES PAGE ACTION BUTTONS - BUT NOT HEADER-CREATE-BTN */
.schedules-page button[ng-click*="createSchedule"]:not(.header-create-btn),
.schedules-page button[ng-click*="editSchedule"]:not(.header-create-btn),
.schedules-page button[type="submit"]:not(.header-create-btn) {
  border: 1px solid white !important;
}

/* REMOVE UNIVERSAL BUTTON BORDER RULES - REPLACED WITH SPECIFIC TARGETING */

/* MOBILE SPECIFIC - REMOVED UNIVERSAL RULE */
@media (max-width: 768px) {
  /* Removed universal button border rule */
}

/* SCHEDULES PAGE FORM BACKGROUND STYLING */
.schedules-page form {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* APPLY BACKGROUND TO ALL FORMS ON SCHEDULES PAGE */
.schedules-page form,
.schedules-page form[name="scheduleForm"],
.schedules-page form[name="editScheduleForm"] {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* ENSURE ALL FORMS ON SCHEDULES GET THE BACKGROUND */
.schedules-page .space-y-4 {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* COMPREHENSIVE SCHEDULES FORM BACKGROUND TARGETING */
.schedules-page form:not([class*="hidden"]),
.schedules-page form[novalidate],
body.schedules-page form {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* FORCE BACKGROUND ON ANY FORM ELEMENT IN SCHEDULES */
.schedules-page form,
.schedules-page form *,
.schedules-page [ng-submit] {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* SCHEDULES FORM CONTAINER BACKGROUND */
.schedules-page .bg-gray-800,
.schedules-page .bg-gray-900,
.schedules-page div:has(form) {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* TARGET THE SPECIFIC FORM CONTAINER DIV */
.schedules-page .bg-gradient-to-br.from-slate-700,
.schedules-page .rounded-xl.shadow-2xl,
.schedules-page .max-w-2xl.mx-auto {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* TARGET EDIT SCHEDULE MODAL */
.schedules-page .bg-white.rounded-xl.shadow-lg,
.schedules-page .max-w-lg.w-full.mx-4 {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* TARGET ALL bg-gradient-to-br DIVS ON SCHEDULES PAGE */
.schedules-page .bg-gradient-to-br {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* STATUS PAGE FORM MARGIN-TOP STYLING */
.status-form {
  margin-top: 20px !important;
}

/* STATUS PAGE SPECIFIC FORM STYLING */
form[name="statusForm"] {
  margin-top: 20px !important;
}

/* STATUS PAGE ALL FORMS */
.status-page form {
  margin-top: 20px !important;
}

/* COMPREHENSIVE STATUS PAGE FORM MARGIN TARGETING */
body.status-page form,
.status-page form:not([class*="hidden"]),
.status-page form[novalidate] {
  margin-top: 20px !important;
}

/* STRONGER STATUS PAGE FORM MARGIN */
.status-page .status-form,
.status-page form[name="statusForm"],
.status-page [ng-submit="scheduleStatus()"] {
  margin-top: 20px !important;
  padding-top: 20px !important;
}

/* UNIVERSAL STATUS PAGE FORM SPACING */
.status-page form {
  margin-top: 25px !important;
}

/* STATUS PAGE MODAL CONTENT SPACING */
.status-page .rounded-xl.shadow-2xl {
  margin-top: 80px !important;
  padding-top: 20px !important;
}

/* STATUS PAGE bg-gradient-to-br DIVS */
.status-page .bg-gradient-to-br {
  background: linear-gradient(135deg, #071c38 0%, #092651 30%, #051228 70%, #0f172a 100%), radial-gradient(circle at 60% 40%, #3b82f6 0%, transparent 80%) !important;
}

/* MOBILE-SPECIFIC STATUS PAGE FIXES */
@media (max-width: 768px) {
  /* Hide sidebar on status page mobile */
  .status-page .flex.dark-theme.min-h-screen > div:first-child {
    display: none !important;
  }
  
  /* Fix header overlap issue on mobile */
  .status-page header {
    position: relative !important;
    z-index: 10 !important;
  }
  
  /* Ensure modal is positioned below header on mobile */
  .status-page [ng-if="createStatusModalVisible"] {
    top: 60px !important;
    z-index: 99999 !important;
    position: fixed !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 1rem !important;
  }
  
  /* Modal content responsive sizing */
  .status-page .fixed > div {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 100px) !important;
    margin: 0 !important;
    margin-top: 1rem !important;
  }
}

/* Desktop modal positioning fix */
@media (min-width: 769px) {
  .status-page [ng-if="createStatusModalVisible"] {
    top: 80px !important;
    z-index: 99999 !important;
    position: fixed !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 2rem !important;
    padding-top: 1rem !important;
  }
}

/* SPECIFIC BUTTON BORDER TARGETING - ONLY APPLY TO BUTTONS THAT NEED BORDERS */

/* Create a specific class for buttons that need white borders */
.btn-with-border,
.action-button {
  border: 1px solid white !important;
}

/* Cancel buttons should always have white borders - BUT NOT HEADER-CREATE-BTN */
button:contains("Cancel"):not(.header-create-btn),
button[ng-click*="cancel"]:not(.header-create-btn),
button[ng-click*="Cancel"]:not(.header-create-btn),
button[ng-click*="close"]:not(.header-create-btn),
button[ng-click*="hide"]:not(.header-create-btn) {
  border: 2px solid white !important;
}

/* Specific targeting for status page cancel buttons - BUT NOT HEADER-CREATE-BTN */
.status-page button:contains("Cancel"):not(.header-create-btn),
.status-page button[ng-click*="Cancel"]:not(.header-create-btn),
.status-page button[ng-click*="hideCreateStatusModal"]:not(.header-create-btn),
.status-page button[ng-click*="closeMediaSelector"]:not(.header-create-btn) {
  border: 2px solid white !important;
}

/* Action buttons in headers that need white borders - BUT NOT HEADER-CREATE-BTN */
.enrollments-page .bg-gradient-to-r:not(.header-create-btn),
.sequences-page .bg-gradient-to-r:not(.header-create-btn),
.schedules-page .bg-gradient-to-r:not(.header-create-btn),
.status-page .bg-gradient-to-r:not(.header-create-btn),
.events-page .bg-gradient-to-r:not(.header-create-btn),
.groups-page .bg-gradient-to-r:not(.header-create-btn),
.media-page .bg-gradient-to-r:not(.header-create-btn),
.direct-schedule-page .bg-gradient-to-r:not(.header-create-btn) {
  border: 1px solid white !important;
}

/* Form submit buttons that need white borders - BUT NOT HEADER-CREATE-BTN */
button[type="submit"]:not(.close-x-button):not([ng-click*="close"]):not(.header-create-btn),
.btn-primary:not(.header-create-btn),
.dark-theme-button-primary:not(.header-create-btn) {
  border: 1px solid white !important;
}

/* Additional specific button targeting for forms and actions - BUT NOT HEADER-CREATE-BTN */
.schedules-page form button[type="submit"]:not(.header-create-btn),
form[name="scheduleForm"] button[type="submit"]:not(.header-create-btn),
.schedules-page .from-emerald-600:not(.header-create-btn),
.status-page button[type="submit"]:not(.header-create-btn) {
  border: 1px solid white !important;
}

/* ENSURE SPECIFIC BUTTONS NEVER GET BORDERS */
.close-x-button,
button.close-x-button,
button[ng-click*="removeNotification"],
button[ng-click*="close"],
button[ng-click*="Close"],
button[ng-click*="Cancel"],
button[ng-click*="handleCancel"],
button[ng-click*="hideEditModal"],
button[ng-click*="hideCreateStatusModal"],
button[ng-click*="hideCreateEventModal"],
button[ng-click*="hideCreateGroupModal"],
button[ng-click*="goBack"],
button[aria-label*="close"],
button[aria-label*="Close"],
button.absolute.top-3.right-3,
.notification button,
.mb-3 button,
button[ng-click*="closeSidebar"],
button[ng-click*="openSidebar"] {
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Extra small screens - even more compact */
@media (max-width: 480px) {
  .enrollments-header h1 {
    font-size: 11px;
    max-width: 35%;
  }
  
  .enrollments-header button {
    min-height: 32px;
    min-width: 32px;
    padding: 4px;
    font-size: 10px;
  }
  
  .enrollments-header button i {
    font-size: 11px;
  }
}

/* Enhanced touch targets for all interactive elements */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive header improvements */
.responsive-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Auto-scroll enhancements */
html {
  scroll-behavior: smooth;
}

main {
  scroll-behavior: smooth;
}

.schedule-container {
  scroll-behavior: smooth;
}

/* Sidebar scroll enhancements */
#desktop-nav, #mobile-nav {
  scroll-behavior: smooth;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 85, 99, 0.5) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(75, 85, 99, 0.5);
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(75, 85, 99, 0.8);
}

/* Enhanced navigation item highlighting */
.nav-item.active {
  position: relative;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 8px;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  border-radius: 2px;
  animation: activeIndicator 0.3s ease-out;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid #06b6d4;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.7;
}

/* Scroll indicator for sidebar */
.sidebar-scroll-indicator {
  position: absolute;
  right: 2px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(75, 85, 99, 0.3);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-scroll-indicator.visible {
  opacity: 1;
}

.sidebar-scroll-thumb {
  position: absolute;
  right: 0;
  width: 2px;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
.nav-item:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

.nav-item:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

@keyframes activeIndicator {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }
}

/* Schedule Card Styling */
.schedule-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.schedule-card:hover::before {
  left: 100%;
}

/* Card Button Animations */
.schedule-card button {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.schedule-card button:hover {
  transform: scale(1.05);
}

.schedule-card button:active {
  transform: scale(0.98);
}

/* Search Input Enhanced Styling */
.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1);
}

.search-input-wrapper input:focus + .search-icon {
  color: #4fd1c7;
  transform: scale(1.1);
}

/* Fade-in animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-card {
  animation: fadeInUp 0.5s ease-out;
}

.schedule-card:nth-child(1) { animation-delay: 0.1s; }
.schedule-card:nth-child(2) { animation-delay: 0.2s; }
.schedule-card:nth-child(3) { animation-delay: 0.3s; }
.schedule-card:nth-child(4) { animation-delay: 0.4s; }
.schedule-card:nth-child(5) { animation-delay: 0.5s; }
.schedule-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading state for search */
.search-loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  .schedule-card {
    margin-bottom: 1rem;
    animation-delay: 0s !important;
  }
  
  .schedule-card:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .responsive-header h1 {
    font-size: 1.125rem; /* 18px */
    line-height: 1.5;
  }
  
  .responsive-header button span {
    font-size: 0.875rem; /* 14px */
  }
}

/* CONSISTENT MOBILE HEADER STYLING ACROSS ALL PAGES */
@media (max-width: 768px) {
  /* UNIFIED HEADER TEXT SIZING - CONSISTENT ACROSS ALL PAGES */
  header h1, 
  header h2,
  .responsive-header-title,
  header .text-xl,
  header .text-2xl {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.5 !important;
    font-weight: 600 !important;
  }
  
  /* CONSISTENT HAMBURGER MENU HEIGHT AND BUTTON STYLING */
  .mobile-only-hamburger,
  button[aria-label="Open sidebar"] {
    width: 44px !important;
    height: 44px !important;
    padding: 10px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure SVG inside hamburger button is properly sized */
  .mobile-only-hamburger svg,
  button[aria-label="Open sidebar"] svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }
  
  /* CONSISTENT HEADER HEIGHT - FOLLOW SETTINGS PAGE STANDARD */
  header,
  .dark-theme-header {
    padding: 1rem 1.5rem !important; /* py-4 px-6 equivalent */
    min-height: 80px !important; /* Consistent header height like settings page */
    max-height: 80px !important;
    height: 80px !important;
  }
  
  header .flex {
    align-items: center !important;
    min-height: 48px !important; /* Inner content height */
    height: 48px !important;
  }
  
  /* Standardized header button styling - match media page create button */
  header button:not(.close-x-button):not([ng-click*="close"]):not([ng-click*="closeSidebar"]):not([ng-click*="openSidebar"]) {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    min-height: 40px !important;
    transition: all 0.3s ease !important;
  }
  
  /* Ensure consistent hover states for header buttons */
  header button:hover:not(.close-x-button):not([ng-click*="close"]):not([ng-click*="closeSidebar"]):not([ng-click*="openSidebar"]) {
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
  }
}

/* DESKTOP HEADER CONSISTENCY TOO */
@media (min-width: 769px) {
  header,
  .dark-theme-header {
    padding: 1rem 1.5rem !important; /* py-4 px-6 equivalent */
    min-height: 80px !important;
    height: 89px !important;
  }
  
  header .flex {
    align-items: center !important;
    height: 48px !important;
  }
}

/* DESKTOP VIEW - FORCE HIDE HAMBURGER MENU - ENHANCED */
@media (min-width: 769px) {
  .md\\:hidden,
  button[aria-label="Open sidebar"],
  button[aria-label*="Open"],
  .mobile-hamburger,
  button.md\\:hidden,
  .mobile-only-hamburger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

/* ADDITIONAL DESKTOP HAMBURGER HIDING */
@media (min-width: 768px) {
  .md\\:hidden,
  .mobile-only-hamburger {
    display: none !important;
  }
}

/* FORCE HIDE ON LARGE SCREENS */
@media (min-width: 1024px) {
  button[ng-click*="openSidebar"],
  button[ng-click*="Sidebar"],
  .mobile-only-hamburger {
    display: none !important;
    visibility: hidden !important;
  }
}

/* SPECIFIC MOBILE-ONLY CLASS */
.mobile-only-hamburger {
  display: flex !important;
}

@media (min-width: 768px) {
  .mobile-only-hamburger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-9999px) !important;
  }
}

/* MOBILE TOAST MESSAGE SPECIFIC FIXES */
@media (max-width: 768px) {
  /* Settings page toast messages - single line only */
  div[ng-if="testSuccess"],
  div[ng-if="saveSuccess"] {
    max-width: 280px !important;
    white-space: nowrap !important;
  }
  
  div[ng-if="testSuccess"] div,
  div[ng-if="saveSuccess"] div {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* CONSISTENT BUTTON STYLING FOR ALL HEADER BUTTONS */
header button {
  border-radius: 8px !important; /* Not too rounded - consistent with media page */
}

/* Ensure all create/action buttons have consistent borders */
header button[ng-click*="create"],
header button[ng-click*="Create"],
header button[ng-click*="show"],
header button[ng-click*="toggle"],
.bg-gradient-to-r {
  border: 2px solid !important;
  border-radius: 8px !important;
}

/* Color-specific borders for different button types */
.from-blue-600.to-blue-700,
.bg-blue-900 {
  border-color: #3b82f6 !important;
}

.from-teal-600.to-teal-700 {
  border-color: #14b8a6 !important;
}

.from-emerald-600.to-emerald-700 {
  border-color: #10b981 !important;
}

/* Sidebar close button consistency */
button[ng-click*="closeSidebar"] {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px !important;
}

/* Enhanced create button dynamic BORDER color effects only */
.dynamic-create-btn {
  background: rgba(45, 55, 72, 0.8) !important; /* Neutral dark background */
  border: 3px solid;
  border-image: linear-gradient(45deg, #10b981, #14b8a6, #0ea5e9, #6366f1, #8b5cf6) 1;
  animation: borderColorShift 2s linear infinite;
  transition: all 0.3s ease;
  position: relative;
}

.dynamic-create-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #10b981, #14b8a6, #0ea5e9, #6366f1, #8b5cf6, #ef4444, #f59e0b, #10b981);
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: borderGradientShift 3s ease infinite;
}

.dynamic-create-btn:hover {
  background: rgba(55, 65, 81, 0.9) !important; /* Slightly lighter on hover */
}

.dynamic-create-btn:hover::before {
  animation: borderGradientShift 1s ease infinite;
}

@keyframes borderGradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Alternative pulsing border effect with neutral background */
.pulse-create-btn {
  background: rgba(45, 55, 72, 0.8) !important; /* Neutral dark background */
  border: 2px solid;
  border-image: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981, #f59e0b, #ef4444, #8b5cf6) 1;
  animation: pulseBorderShift 2.5s linear infinite;
  position: relative;
  overflow: hidden;
}

.pulse-create-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981, #f59e0b, #ef4444, #8b5cf6);
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: pulseBorderShift 2.5s linear infinite;
}

.pulse-create-btn:hover {
  background: rgba(55, 65, 81, 0.9) !important; /* Slightly lighter on hover */
}

@keyframes pulseBorderShift {
  0% { background-position: 0% 0%; }
  33% { background-position: 100% 0%; }
  66% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Settings page button styling with white borders */
.no-bg-dynamic-border {
  background: rgba(45, 55, 72, 0.8) !important;
  border: 2px solid white !important;
  transition: all 0.3s ease;
}

.no-bg-dynamic-border:hover {
  background: rgba(55, 65, 81, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}

.no-bg-dynamic-border:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Header create buttons - Simple white borders */
.header-create-btn,
button.header-create-btn,
a.header-create-btn {
  background: transparent !important;
  color: white !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 0.375rem !important;
  font-weight: 500 !important;
  border: 2px solid white !important;
}

/* Remove all complex animations - keeping it simple */

/* Remove all complex animations - keeping it simple */

/* Remove all complex animations - keeping it simple */

/* Remove all complex animations - keeping it simple */

/* Remove all complex animations - keeping it simple */

/* Remove all complex animations - keeping it simple */
