/* 1. Redesigned start-exam-card */
.start-exam-card {
  max-width: 600px;
  margin: auto;
  position: relative;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(25, 30, 55, 0.8) 0%, rgba(40, 45, 75, 0.9) 100%);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 10px 10px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.start-exam-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--primary), var(--accent), var(--secondary), var(--primary));
  background-size: 300% 100%;
  animation: gradientShift 8s ease infinite;
  z-index: 1;
}

.start-exam-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 30px -10px rgba(0, 0, 0, 0.25),
    0 15px 15px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 4px rgba(76, 201, 240, 0.1);
}

.start-exam-card h2 {
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  margin-bottom: 1.5rem;
}

.start-exam-card h2 i {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 10px;
}

.start-exam-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.start-exam-card .btn {
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 2. Redesigned custom radio selector */
.test-type-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.custom-radio-card {
  position: relative;
  flex: 1;
  min-width: 150px;
}

.custom-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.radio-indicator {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.radio-indicator:after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

.custom-radio-card input[type="radio"]:checked+.radio-card-label {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(67, 97, 238, 0.12) 0%, rgba(76, 201, 240, 0.15) 100%);
  color: var(--text-primary);
  box-shadow:
    0 5px 15px rgba(76, 201, 240, 0.15),
    0 0 0 1px rgba(76, 201, 240, 0.3);
}

.custom-radio-card input[type="radio"]:checked+.radio-card-label .radio-indicator {
  border-color: var(--accent);
  background-color: rgba(76, 201, 240, 0.1);
}

.custom-radio-card input[type="radio"]:checked+.radio-card-label .radio-indicator:after {
  display: block;
}

.radio-card-label:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(76, 201, 240, 0.3);
}

.custom-radio-card input[type="radio"]:checked+.radio-card-label:hover {
  transform: translateY(-2px);
}


/* Add RGB values for the gradients to work properly */
:root {
  --primary-rgb: 67, 97, 238;
  --secondary-rgb: 58, 12, 163;
  --accent-rgb: 76, 201, 240;
}

/* Enhanced Range Slider - Complete Rewrite */
.range-container {
  position: relative;
  padding: 0.5rem 0;
  margin: 1rem 0;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Track styling */
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: transparent;
}

/* Thumb styling */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  margin-top: -7px;
  /* offset for proper vertical alignment */
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.2);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

input[type="range"]::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.2);
  transition: all 0.2s ease;
}

input[type="range"]::-ms-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.2);
  transition: all 0.2s ease;
}

/* Hover and focus states */
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(76, 201, 240, 0.3), 0 0 15px rgba(76, 201, 240, 0.5);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:focus::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(76, 201, 240, 0.3), 0 0 15px rgba(76, 201, 240, 0.5);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

/* Fill track effect using pseudo-element overlay */
.range-container::before {
  content: '';
  position: absolute;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 12px;
  top: 0.9rem;
  left: 0;
  width: var(--range-progress, 50%);
  z-index: 1;
  pointer-events: none;
}

/* Style the counter badge */
.badge#questionCount {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
}

/* Style the min/max labels */
.range-labels small.text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.75rem;
}

/* Add these styles at the end of your project.css file */

/* Add these styles at the end of your existing styles */

:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --accent: #4cc9f0;
  --text-primary: #f8f9fa;
  --text-secondary: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
}

html {
  height: 100%;
  background-color: #0f172c;
  /* background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); */
}

body {
  /* Elegant gradient background */
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-primary);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
}

/* Container styling - Remove left/right padding */
.container,
.container-fluid {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Override Bootstrap container padding for all sections */
.hero-section .container,
.features-section .container,
.exam-types-section .container,
.how-it-works-section .container,
.testimonials-section .container,
.faq-section .container,
.cta-section .container {
  padding: 0 !important;
  max-width: 100% !important;
}

/* Add padding only to inner content, not containers */
.hero-section .row,
.features-section .row,
.exam-types-section .row,
.how-it-works-section .row,
.testimonials-section .row,
.faq-section .row,
.cta-section .row {
  padding: 0 2rem;
  margin: 0;
}

/* Card styling */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 4px rgba(76, 201, 240, 0.1);
}

.card-header {
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.1) 0%, rgba(58, 12, 163, 0.1) 100%) !important;
  border-bottom: 1px solid var(--card-border);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Text styling */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

p,
.text-muted {
  color: var(--text-secondary);
}

/* Button styling */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}

/* Form control styling */
.form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(76, 201, 240, 0.5);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
}

/* Accent elements */
.accent-line {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  margin: 2rem 0;
  border-radius: 50px;
}

/* Links */
a {
  color: var(--accent);
  transition: color 0.2s ease;
  text-decoration: none;
}

a:hover {
  color: #7dd3fb;
}

/* Subtle animation for section transitions */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Table styling */
table {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--text-primary);
  font-weight: 600;
}

/* Optional: Navbar styling to match */
.navbar {
  backdrop-filter: blur(12px);
  background-color: rgba(15, 23, 42, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhanced Navbar Styling */
.navbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgb(80 114 196 / 90%) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  z-index: 1030;
  min-height: 70px;
  margin-bottom: 0 !important;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(76, 201, 240, 0.3) 25%,
      rgba(67, 97, 238, 0.3) 50%,
      rgba(58, 12, 163, 0.3) 75%,
      transparent 100%);
  z-index: 1;
}

/* Brand styling */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  /* Increased font size */
  letter-spacing: -0.5px;
  color: var(--text-primary) !important;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

/* Optional: Add an accent glow to your brand */
.navbar-brand::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

.navbar-brand:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar toggler (hamburger menu) */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  position: relative;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: none !important;
  position: relative;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: 6px;
}

.navbar-toggler-icon span {
  top: 12px;
}

.navbar-toggler-icon::after {
  bottom: 6px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 11px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  bottom: 11px;
}

/* Nav links */
.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.65rem 1.25rem;
  /* Match button padding */
  position: relative;
  z-index: 1;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-nav .nav-link:hover {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* Active nav link */
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background: rgba(76, 201, 240, 0.05);
  font-weight: 600;
}

.navbar-nav .nav-link.active::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

/* Dropdown styling */
.dropdown-menu {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
  background: linear-gradient(90deg,
      rgba(67, 97, 238, 0.15) 0%,
      rgba(76, 201, 240, 0.15) 100%);
  color: var(--accent);
}

/* Optional: Nav button (for CTAs like login/signup) */
.navbar .btn-nav,
.navbar .btn-primary,
.navbar .btn-outline-primary {
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}

.navbar .btn-outline-primary {
  background: transparent;
  border: 1px solid rgba(76, 201, 240, 0.3);
  color: var(--text-secondary);
}

.navbar .btn-outline-primary:hover {
  background: rgba(76, 201, 240, 0.1);
  padding: 0.65rem 1.5rem;
}

.navbar-nav .nav-link[href*="signup"]:hover,
.navbar-nav .nav-link[href*="accounts/signup"]:hover {
  background: rgba(76, 201, 240, 0.1);
  border-color: var(--accent);
  color: var(--text-primary) !important;
  transform: translateY(-2px);
}

/* Update Sign In button to match Sign Up button styling */
.navbar-nav .nav-link[href*="login"],
.navbar-nav .nav-link[href*="signin"],
.navbar-nav .nav-link[href*="accounts/login"],
.navbar .btn-nav {
  background: transparent;
  border: 1px solid rgba(76, 201, 240, 0.3);
  color: var(--text-secondary) !important;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link[href*="login"]:hover,
.navbar-nav .nav-link[href*="signin"]:hover,
.navbar-nav .nav-link[href*="accounts/login"]:hover,
.navbar .btn-nav:hover {
  background: rgba(76, 201, 240, 0.1);
  border-color: var(--accent);
  color: var(--text-primary) !important;
  transform: translateY(-2px);
}

/* Responsive adjustments for mobile */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.85rem 1.2rem;
    min-height: 65px;
  }

  .navbar-brand {
    font-size: 1.35rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    justify-content: flex-start;
  }

  .navbar-nav .nav-link[href*="signup"],
  .navbar-nav .nav-link[href*="login"] {
    justify-content: center;
  }
}

/* Auth Pages Styling */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: rgba(25, 30, 55, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /* background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary)); */
background: linear-gradient(90deg, #950c0c, #171717, #a40101);
  z-index: 2;
}

.auth-card h1 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.auth-card p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .form-control {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.auth-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.auth-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

.auth-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Animation Overlays */
.animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.animation-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Trophy Animation */
.trophy-container {
  text-align: center;
}

.trophy-icon {
  font-size: 5rem;
  color: #fbbf24;
  animation: trophyBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
}

@keyframes trophyBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

.success-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInUp 0.5s ease 0.5s forwards;
  font-weight: 700;
}

/* OUT Animation */
.out-container {
  text-align: center;
}

.out-text {
  font-family: 'Black Ops One', cursive, sans-serif;
  font-size: 6rem;
  font-weight: 900;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 5px;
  border: 8px solid #ef4444;
  padding: 10px 40px;
  border-radius: 10px;
  transform: scale(0) rotate(-20deg);
  opacity: 0;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: stampIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampIn {
  0% {
    transform: scale(3) rotate(-20deg);
    opacity: 0;
  }

  100% {
    transform: scale(1) rotate(-20deg);
    opacity: 1;
  }
}

.error-text {
  font-size: 1.2rem;
  color: #fca5a5;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 0.5s ease 0.8s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Profile Page Styling (CricHeroes Style)
   ========================================= */

.profile-header-wrapper {
  background-color: #d32f2f;
  color: white;
  padding: 2rem 0 4rem;
  position: relative;
  margin-bottom: 2rem;
  overflow: visible !important;
}

.profile-header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .profile-header-content {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }

  .profile-stats-container {
    margin-left: 0 !important;
    justify-content: center;
    width: 100%;
  }
}

.profile-avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  background-color: #1f2937;
}

.profile-info {
  flex: 1;
  min-width: 200px;
}

.profile-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.profile-meta {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-role {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* Stats Cards (Matches, Runs, Wickets) */
.profile-stats-container {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.stat-card-red {
  background-color: #b91c1c;
  color: white;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  text-decoration: none;
}

.stat-card-red:hover {
  transform: translateY(-2px);
  color: white;
}

.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.stat-card-label {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Tabs Styling */
.profile-tabs-container {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.profile-nav-tabs {
  border-bottom: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .profile-nav-tabs {
    padding: 0 1rem;
    gap: 1rem;
  }
}

.profile-nav-tabs .nav-link {
  border: none;
  color: #4b5563;
  font-weight: 500;
  padding: 1rem 0.5rem;
  background: transparent;
  position: relative;
  white-space: nowrap;
}

.profile-nav-tabs .nav-link:hover {
  color: #d32f2f;
}

.profile-nav-tabs .nav-link.active {
  color: #d32f2f;
  background: transparent;
  font-weight: 600;
}

.profile-nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #d32f2f;
  border-radius: 3px 3px 0 0;
}

/* Match Cards */
.match-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
  height: 100%;
}

.match-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.match-status-badge {
  background-color: #1f2937;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.match-teams {
  margin-bottom: 1rem;
}

.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.team-name {
  font-weight: 600;
  color: #111827;
  font-size: 1.1rem;
}

.team-score {
  font-weight: 700;
  color: #111827;
  margin-right: 0.5rem;
}

.team-overs {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
}

.match-result {
  font-size: 0.9rem;
  font-weight: 500;
  color: #059669;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

.match-result.text-danger {
  color: #dc2626 !important;
}

/* Dark Mode Overrides for Profile (if needed) */
/* Since the screenshot shows a light theme for the content area, we'll keep the cards white for now.
   If the user wants full dark mode, we can adjust these. */

/* =========================================
   Start Match Wizard Styling
   ========================================= */

.vs-badge {
  background-color: #1f2937;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 4px solid white;
}

.card.border-primary {
  border-width: 2px;
}

.card.border-danger {
  border-width: 2px;
}

.card-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Modal styling adjustments */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* --- Dark Sidebar Styles (Matches Screenshot) --- */
.dark-sidebar {
  background-color: #0f172a !important;
  /* Dark slate/blue */
  color: #94a3b8;
  width: 280px !important;
  /* Fixed width instead of vw/% */
  max-width: 320px !important;
}

/* Profile page specific fixes for offcanvas */
.profile-header-wrapper {
  position: relative;
  overflow: visible !important;
  /* Allow offcanvas to render properly */
}

/* Ensure body doesn't get constrained when offcanvas opens */
body.offcanvas-backdrop {
  overflow: hidden;
}

/* Force offcanvas to be full viewport */
.offcanvas.dark-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 280px !important;
  z-index: 1045 !important;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.offcanvas.dark-sidebar.show {
  transform: translateX(0);
}

.dark-sidebar .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #0f172a;
}

.dark-sidebar .btn-close-white {
  opacity: 0.8;
}

.sidebar-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
}

.sidebar-section-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  letter-spacing: 0.05em;
}


.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 3px;
  background-color: #34d399;
  border-radius: 0 2px 2px 0;
}

.sidebar-item i {
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
  display: inline-block;
}

.sidebar-item .badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 0.35em 0.6em;
  background-color: #6366f1 !important;
  /* Indigo for NEW badge */
}

/* --- Mobile Blue Navbar --- */
.blue-navbar {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky !important;
  top: 0;
  z-index: 1040 !important;
  /* Below offcanvas (1045) */
}

/* Ensure hamburger lines are white on blue navbar */
.blue-navbar .navbar-toggler-icon {
  background-image: none !important;
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
}

.blue-navbar .navbar-toggler-icon::before,
.blue-navbar .navbar-toggler-icon::after,
.blue-navbar .navbar-toggler-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.blue-navbar .navbar-toggler-icon::before {
  top: 6px;
}

.blue-navbar .navbar-toggler-icon span {
  top: 12px;
}

.blue-navbar .navbar-toggler-icon::after {
  bottom: 6px;
}

.blue-navbar .navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.25rem;
}

/* =========================================
   Profile Page Styling (Redesigned)
   ========================================= */

.profile-header-wrapper {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: white;
  padding: 3rem 0 5rem;
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
}

.profile-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
  z-index: 0;
}

.profile-header-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .profile-header-content {
    flex-direction: column;
    text-align: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .profile-stats-container {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.profile-avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  background-color: #1f2937;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-edit-avatar {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-edit-avatar:hover {
  transform: scale(1.1);
  background: #f8f9fa;
}

.profile-info {
  flex: 1;
  min-width: 200px;
}

.profile-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-meta {
  font-size: 1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.backdrop-blur {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Stats Cards */
.profile-stats-container {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.stat-card {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 100px;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Tabs Styling */
.profile-tabs-wrapper {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.profile-nav-tabs {
  border-bottom: none;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
}

.profile-nav-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.profile-nav-tabs .nav-link {
  border: none;
  color: #6b7280;
  font-weight: 600;
  padding: 1rem 0.5rem;
  background: transparent;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.profile-nav-tabs .nav-link:hover {
  color: #111827;
}

.profile-nav-tabs .nav-link.active {
  color: #b91c1c;
  background: transparent;
}

.profile-nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #b91c1c;
  border-radius: 3px 3px 0 0;
}

/* Match Cards */
.match-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.team-avatar-sm {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Info Groups */
.info-group {
  padding: 0.5rem 0;
}

.info-group label {
  display: block;
  letter-spacing: 0.5px;
}

/* Empty State */
.empty-state {
  padding: 3rem;
  background: #f9fafb;
  border-radius: 16px;
  border: 2px dashed #e5e7eb;
}

/* Modal Styling */
.modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

/* =========================================
   Fix Modal Readability
   ========================================= */

/* Force dark text for all inputs in the profile modals */
#editProfileModal .form-control,
#editProfileModal .form-select,
#editAvatarModal .form-control,
#editAvatarModal .form-select {
    color: #212529 !important;       /* Dark text */
    background-color: #ffffff !important; /* White background */
    border: 1px solid #ced4da !important;
}

/* Fix focus state */
#editProfileModal .form-control:focus,
#editProfileModal .form-select:focus {
    color: #212529 !important;
    background-color: #ffffff !important;
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Ensure labels are bold and dark */
#editProfileModal .form-label,
#editAvatarModal .form-label {
    color: #212529 !important;
    font-weight: 600;
}

/* Fix placeholder text visibility */
#editProfileModal ::placeholder,
#editAvatarModal ::placeholder {
    color: #6c757d !important; /* Gray placeholder */
    opacity: 1;
}

/* Fix date input icon */
#editProfileModal input[type="date"] {
    color: #212529 !important;
}