:root {
  --primary-color: #002395; /* French Blue */
  --secondary-color: #ed2939; /* French Red */
  --accent-color: #009bef;
  --background-light: #f8fafc;
  --text-dark: #1e293b;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress Ring Style */
.progress-ring-container {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.progress-ring .background { stroke: rgba(0,0,0,0.1); }
.progress-ring .foreground { 
    stroke: var(--primary-color);
    transition: stroke-dashoffset 0.5s ease;
}

.lesson-complete-btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.lesson-complete-btn.completed {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white;
}

.lesson-depth {
    background: linear-gradient(to bottom right, #ffffff, #fcfcfc);
}

.lesson-depth h3 {
    letter-spacing: -0.5px;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  margin: 0;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.brand-french {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.brand-elite {
  color: var(--secondary-color);
  font-weight: 400;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #00124d 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.1;
}

/* Level Cards */
.level-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.level-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 35, 149, 0.1);
  border-color: var(--primary-color);
}

.level-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 35, 149, 0.05);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Module Cards */
.module-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  border-left: 5px solid var(--primary-color);
  transition: var(--transition-smooth);
  cursor: pointer;
}

@media (max-width: 576px) {
  .module-card {
    padding: 1.2rem;
  }
}

.module-card:hover {
  background: var(--background-light);
  transform: translateX(5px);
}

/* Learning View Sidebar */
.list-group-item {
    border: none !important;
    padding: 1rem 1.5rem !important;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.list-group-item.active {
    background-color: var(--primary-color) !important;
    border-radius: 0 !important;
}

.list-group-item:hover:not(.active) {
    background-color: rgba(0, 35, 149, 0.05);
}

.theory-box {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

/* Quiz UI */
.quiz-container {
  max-width: 800px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quiz-header {
  background: var(--background-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.option-btn {
  text-align: left;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: white;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.option-btn:hover {
  border-color: var(--primary-color);
  background: rgba(0, 35, 149, 0.02);
}

.option-btn.selected {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

/* Utilities */
.section-title {
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-section {
  animation: fadeInUp 0.5s ease-out;
}

.d-none {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .learning-view .sticky-top {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
  .display-3 {
    font-size: 2.2rem;
  }
  .card-body.p-5 {
    padding: 1.5rem !important;
  }
  .results-card.p-5 {
    padding: 2rem !important;
  }
  .quiz-body.p-4 {
    padding: 1.2rem !important;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 1.8rem;
  }
  .lead {
    font-size: 1rem;
  }
  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}
