/* Custom animations */
.hover-scale {
  transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Enhanced card gradients */
.card-gradient-1 {
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card-gradient-2 {
  background-image: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
}

.card-gradient-3 {
  background-image: linear-gradient(135deg, #e8f5e9 0%, #81c784 100%);
}

/* Modern gradients */
.bg-gradient-blue-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-green-blue {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.bg-gradient-orange-red {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}

/* Improved scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 241, 241, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(136, 136, 136, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(85, 85, 85, 0.7);
}

/* Enhanced pulse animation */
.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* Improved progress bars */
.progress-bar-animated {
  position: relative;
  overflow: hidden;
}

.progress-bar-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
  to {
    left: 100%;
  }
}

/* Stylish focus states */
.custom-focus:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
}

/* Background pattern */
.bg-pattern {
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a5b4fc' fill-opacity='0.1'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999; /* Slightly higher than gradient but still behind content */
  pointer-events: none;
  opacity: 0.05;
}

/* Gradient buttons */
.btn-gradient-primary {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

/* Card hover animation */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modern gradients for page backgrounds */
.modern-gradient {
  background: linear-gradient(-45deg, 
    rgba(239, 246, 255, 0.8),  /* blue-50 */
    rgba(219, 234, 254, 0.8),  /* blue-100 */
    rgba(224, 231, 255, 0.8),  /* indigo-100 */
    rgba(238, 242, 255, 0.8)); /* indigo-50 */
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
  position: fixed;  /* Changed from absolute to fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1000; /* Lower z-index to ensure it stays behind all content */
  pointer-events: none;
}

/* Ensure body and html take up full height */
html, body {
  min-height: 100%;
  height: 100%;
}

/* Make main content area properly extend */
.content-wrapper {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

/* Animated gradient background */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Noise texture overlay */
.modern-gradient::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  z-index: -1;
  pointer-events: none;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
}

/* Improved card styling with consistent looks */
.glass-card {
  background: rgba(255, 255, 255, 0.92) !important; /* Higher opacity for better contrast */
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Improved card variants */
.glass-card-blue {
  background: linear-gradient(135deg, 
    rgba(239, 246, 255, 0.95),  /* blue-50 */
    rgba(219, 234, 254, 0.85)   /* blue-100 */
  ) !important;
  border-left: 3px solid rgba(59, 130, 246, 0.8); /* blue-500 */
}

.glass-card-purple {
  background: linear-gradient(135deg, 
    rgba(245, 243, 255, 0.95),  /* purple-50 */
    rgba(237, 233, 254, 0.85)   /* purple-100 */
  ) !important;
  border-left: 3px solid rgba(139, 92, 246, 0.8); /* purple-500 */
}

.glass-card-green {
  background: linear-gradient(135deg, 
    rgba(236, 253, 245, 0.95),  /* green-50 */
    rgba(209, 250, 229, 0.85)   /* green-100 */
  ) !important;
  border-left: 3px solid rgba(16, 185, 129, 0.8); /* green-500 */
}

/* Dashboard card animations */
.dashboard-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Enhanced job cards */
.job-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1), 
              0 10px 10px -5px rgba(37, 99, 235, 0.05);
  background: rgba(255, 255, 255, 0.85);
}

/* Add this section for glow effects on focused elements */
.glow-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  outline: none;
}

.glow-blue {
  transition: all 0.3s ease;
}

.glow-blue:hover {
  box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.2);
}

/* Add ambient animations to background */
.ambient-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -10;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  filter: blur(8px);
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(100px, 100px) rotate(180deg); }
  90% { opacity: 0.8; }
  100% { transform: translate(0, 0) rotate(360deg); opacity: 0; }
}

/* Override any default styles that might interfere */
.bg-white {
  background-color: rgba(255, 255, 255, 0.92) !important; /* Higher opacity for better contrast */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Dashboard stat cards styling */
.stats-blue {
  background: linear-gradient(135deg, 
    rgba(239, 246, 255, 0.95),  /* blue-50 */
    rgba(219, 234, 254, 0.85)   /* blue-100 */
  ) !important;
  border-left: 3px solid rgba(59, 130, 246, 0.8); /* blue-500 */
}

.stats-purple {
  background: linear-gradient(135deg, 
    rgba(245, 243, 255, 0.95),  /* purple-50 */
    rgba(237, 233, 254, 0.85)   /* purple-100 */
  ) !important;
  border-left: 3px solid rgba(139, 92, 246, 0.8); /* purple-500 */
}

.stats-green {
  background: linear-gradient(135deg, 
    rgba(236, 253, 245, 0.95),  /* green-50 */
    rgba(209, 250, 229, 0.85)   /* green-100 */
  ) !important;
  border-left: 3px solid rgba(16, 185, 129, 0.8); /* green-500 */
}

.stats-amber {
  background: linear-gradient(135deg, 
    rgba(254, 252, 232, 0.95),  /* amber-50 */
    rgba(252, 243, 207, 0.85)   /* amber-100 */
  ) !important;
  border-left: 3px solid rgba(245, 158, 11, 0.8); /* amber-500 */
}

/* Ensure table backgrounds are solid for readability */
table, .table-wrapper {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Elegant header gradient overlay */
.header-gradient {
  background: linear-gradient(to right, 
    rgba(37, 99, 235, 0.9),     /* blue-600 */
    rgba(79, 70, 229, 0.9)      /* indigo-600 */
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Modern gradient button */
.btn-gradient {
  background: linear-gradient(to right, 
    rgba(37, 99, 235, 1),       /* blue-600 */
    rgba(79, 70, 229, 1)        /* indigo-600 */
  );
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(to right, 
    rgba(29, 78, 216, 1),       /* blue-700 */
    rgba(67, 56, 202, 1)        /* indigo-700 */
  );
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

/* Add this section for the improved navigation styling */

/* Enhanced navigation */
.nav-gradient {
  background: linear-gradient(to right, #3b82f6, #4f46e5);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

/* Glow effect for buttons and interactive elements */
.glow-effect {
  transition: all 0.3s ease;
}

.glow-effect:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Improved navbar user badge */
.user-badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.user-badge:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Add these modern navbar styles */

/* Modern navbar styling */
.nav-shine {
  position: relative;
  overflow: hidden;
}

.nav-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: opacity 0.5s;
}

.nav-shine:hover::after {
  opacity: 1;
  animation: shine 1.5s forwards;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* Enhanced user badge with avatar */
.user-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  color: #4f46e5;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

/* Status indicator dot animation */
.status-online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px white;
}

.status-online::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
  z-index: -1;
}

/* Add gradient sheen effect to navbar */
.navbar-gradient {
  background: linear-gradient(to right, #4f46e5, #3b82f6, #4f46e5);
  background-size: 200% 100%;
  animation: gradientShift 15s ease infinite;
  position: relative;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Shadow effect for navbar */
.shadow-glow {
  box-shadow: 
    0 4px 12px -2px rgba(59, 130, 246, 0.25),
    0 0 36px -6px rgba(79, 70, 229, 0.2);
}

/* Enhanced header styles */
.modern-header {
  background: linear-gradient(to right, #1e293b, #334155);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.nav-button-glow:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Animated accent line */
.accent-line {
  position: relative;
  height: 2px;
  background: linear-gradient(to right, #f59e0b, #fbbf24, #f59e0b);
  background-size: 200% 100%;
  animation: moveGradient 3s ease infinite;
}

@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* User avatar enhancement */
.user-avatar-glow {
  position: relative;
}

.user-avatar-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.15)
  );
  border-radius: 9999px;
  animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Elegant dropdown menu styles */
.dropdown-menu {
  overflow: hidden;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Enhanced navbar elements */
.navbar-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.navbar-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.8), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-button:hover::after {
  transform: scaleX(1);
}

/* Pulsing credit button */
@keyframes subtle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.credit-button {
  position: relative;
  animation: subtle-pulse 2s infinite;
}

/* Improved status indicator */
.status-indicator {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: #10b981;
  box-shadow: 0 0 0 2px #1f2937, 0 0 0 4px rgba(16, 185, 129, 0.3);
}

/* Enhance navbar backdrop blur */
.navbar-blur {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(30, 41, 59, 0.8);
}

/* Add better text shadow effect for better readability on any background */
.shadow-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced navbar items with proper shadows and contrast */
.navbar-item {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #f59e0b, #fbbf24);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.navbar-item:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}

/* Improve contrast for buttons with darker border */
.contrast-button {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contrast-button:hover {
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Improved button gradients with better contrast */
.amber-button-gradient {
  background: linear-gradient(to bottom, #f59e0b, #d97706);
  border: 1px solid #b45309;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 
    0 4px 6px -1px rgba(217, 119, 6, 0.3),
    0 2px 4px -1px rgba(217, 119, 6, 0.2);
}

.amber-button-gradient:hover {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b);
  box-shadow: 
    0 10px 15px -3px rgba(217, 119, 6, 0.4),
    0 4px 6px -2px rgba(217, 119, 6, 0.25);
}

/* Improved background for dark UI components with good contrast */
.dark-ui-element {
  background-color: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: white;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Fix footer links to ensure they're clickable */
footer {
  position: relative;
  z-index: 10;  /* Ensure footer is above other elements */
  flex-shrink: 0;
}

footer a {
  position: relative;
  z-index: 15;  /* Make links have higher z-index than footer */
  cursor: pointer !important;
}

/* Apply specific styles to ensure links are interactive */
.footer-link {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  position: relative;
  z-index: 20;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Fix for long content pages (privacy, terms, contact) */
.full-height-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.content-card {
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

/* Ensure the footer stays at bottom even with short content */
body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Global background container to ensure gradient on all pages */
.bg-gradient-container {
  position: relative;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Improved modern gradient for consistent appearance on all pages */
.modern-gradient {
  background: linear-gradient(-45deg, 
    rgba(239, 246, 255, 0.8),  /* blue-50 */
    rgba(219, 234, 254, 0.8),  /* blue-100 */
    rgba(224, 231, 255, 0.8),  /* indigo-100 */
    rgba(238, 242, 255, 0.8)); /* indigo-50 */
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

/* Ensure consistent sizing on all pages */
html {
  height: 100%;
}

body {
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Ensure content cards appear properly */
.container, .content-card {
  position: relative;
  z-index: 2;
}

/* Email Settings Page Enhancements */
.provider-radio:checked + label {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}

.provider-radio:checked + label img {
    transform: scale(1.1);
}

.provider-label {
    transition: all 0.2s ease-in-out;
}

.provider-label:hover {
    background-color: #F9FAFB;
    transform: translateY(-1px);
}

.status-badge {
    transition: all 0.2s ease-in-out;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* Enhanced Input Fields */
input[type="email"],
input[type="password"],
input[type="text"],
select,
textarea {
    background-color: white;
    border-width: 2px;
    border-color: #E5E7EB;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #1F2937;
    transition: all 0.2s ease;
}

input[type="email"]:hover,
input[type="password"]:hover,
input[type="text"]:hover,
select:hover,
textarea:hover {
    border-color: #D1D5DB;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Input with icon padding */
.input-with-icon {
    padding-right: 2.5rem;
}

/* Placeholder styling */
::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

/* Error state */
.input-error {
    border-color: #EF4444;
}

.input-error:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success state */
.input-success {
    border-color: #10B981;
}

.input-success:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Disabled state */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Enhanced Select Field */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Enhanced Test Email Button */
#testEmailForm button[type="submit"] {
    transition: all 0.2s ease;
}

#testEmailForm button[type="submit"]:active {
    transform: translateY(0);
}
