: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);
}

@media (min-width: 992px) {
  #level-nav {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
  }

  #level-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 991px) {
  #level-nav {
    display: block;
    /* Standard Bootstrap vertical flow */
    padding: 0;
  }
}

/* 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;
  pointer-events: none;
}

/* 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);
}

/* User Profile & Nav */
#user-avatar {
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
  border-radius: 12px;
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 500;
}

/* Login Section */
#login-view {
  background: radial-gradient(circle at 10% 20%, rgba(0, 35, 149, 0.03) 0%, transparent 50%);
}

#login-view .card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 35, 149, 0.1);
}

.bg-primary-subtle {
  background-color: rgba(0, 35, 149, 0.1) !important;
}

.bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Accordion Learning View */
.accordion-container .card {
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.accordion-container .card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-icon {
  transition: transform 0.3s ease;
}

[aria-expanded="true"] .transition-icon {
  transform: rotate(180deg);
}

#answer-key-view .card {
  border-radius: 15px;
  overflow: hidden;
}

#answer-key-view .card-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: none;
  padding: 1.25rem;
}

#answer-key-content {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f5f9;
}

/* Custom scrollbar for Answer Key body */
.card-body::-webkit-scrollbar {
  width: 6px;
}

.card-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.card-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.card-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 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);
}

/* Feedback System */
.feedback-card {
  transition: var(--transition-smooth);
  border: none;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.feedback-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.feedback-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

#char-count {
  font-size: 0.75rem;
  transition: color 0.3s;
}

.char-limit {
  color: #ef4444;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .accordion-container .btn-link {
    padding: 1.25rem !important;
  }
}

@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;
  }
}
 / *   R e s t r i c t e d   c o n t e n t   * / 
 . r e s t r i c t e d - l e s s o n   { 
     p o s i t i o n :   r e l a t i v e ; 
     o v e r f l o w :   h i d d e n ; 
     t r a n s i t i o n :   v a r ( - - t r a n s i t i o n - s m o o t h ) ; 
 } 
 
 . r e s t r i c t e d - l e s s o n   . c a r d - b o d y   { 
     f i l t e r :   b l u r ( 8 p x ) ; 
     p o i n t e r - e v e n t s :   n o n e ; 
     u s e r - s e l e c t :   n o n e ; 
     o p a c i t y :   0 . 6 ; 
 } 
 
 . r e s t r i c t e d - o v e r l a y   { 
     p o s i t i o n :   a b s o l u t e ; 
     t o p :   0 ; 
     l e f t :   0 ; 
     w i d t h :   1 0 0 % ; 
     h e i g h t :   1 0 0 % ; 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 4 ) ; 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     z - i n d e x :   1 0 ; 
     t e x t - a l i g n :   c e n t e r ; 
     p a d d i n g :   2 r e m ; 
     b a c k d r o p - f i l t e r :   b l u r ( 2 p x ) ; 
 } 
 
 . r e s t r i c t e d - l o c k - i c o n   { 
     f o n t - s i z e :   3 r e m ; 
     c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
     m a r g i n - b o t t o m :   1 r e m ; 
 } 
 
 . r e s t r i c t e d - t e x t   { 
     b a c k g r o u n d :   w h i t e ; 
     p a d d i n g :   1 . 5 r e m ; 
     b o r d e r - r a d i u s :   1 5 p x ; 
     b o x - s h a d o w :   0   1 0 p x   2 5 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; 
     m a x - w i d t h :   8 0 % ; 
 }  
 