/*
 * SureSuccess - Review Page Stylesheet
 * Optimized styles for the daily review page with enhanced learning features
 */

/* ======================================
   BASE STYLES & VARIABLES
   ====================================== */
:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #93c5fd;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --secondary-lighter: #334155;
  
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --background: #ffffff;
  --background-alt: #f8fafc;
  --background-dark: #f1f5f9;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-headings: 'Poppins', var(--font-primary);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* ======================================
   RESET & BASE STYLES
   ====================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background);
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 5rem 0;
  position: relative;
}

/* ======================================
   NAVIGATION
   ====================================== */
.navbar {
  background-color: var(--background);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
  transition: var(--transition);
  z-index: 100;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.brand-logo {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary);
}

.brand-highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-nav {
  margin-left: 1.5rem;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.625rem 0.5rem;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--primary-gradient);
  margin-top: 4px;
  border-radius: var(--border-radius-full);
}

.nav-buttons {
  display: flex;
  align-items: center;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--background);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
  }

  .nav-buttons {
    margin-top: 1rem;
    flex-direction: column;
    width: 100%;
  }

  .nav-buttons .btn {
    margin: 0.25rem 0;
    width: 100%;
  }
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  outline: none !important;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover, 
.btn-primary:focus {
  background: var(--primary-dark);
  color: var(--text-white);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
  border: 1px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--text-white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: white;
}

.btn-outline-success {
  border: 1px solid var(--success);
  color: var(--success);
  background-color: transparent;
}

.btn-outline-success:hover, 
.btn-success {
  background-color: var(--success);
  color: white;
  border-color: var(--success);
}

.btn-outline-warning {
  border: 1px solid var(--warning);
  color: var(--warning);
  background-color: transparent;
}

.btn-outline-warning:hover, 
.btn-warning {
  background-color: var(--warning);
  color: var(--text-dark);
  border-color: var(--warning);
}

.btn-outline-danger {
  border: 1px solid var(--danger);
  color: var(--danger);
  background-color: transparent;
}

.btn-outline-danger:hover, 
.btn-danger {
  background-color: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ======================================
   HEADER SECTION
   ====================================== */
.module-detail-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  color: white;
}

/* Add subtle dot pattern overlay */
.module-detail-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#ffffff33 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 0;
}

/* Breadcrumb Styling */
.breadcrumb-wrapper {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  padding: 0;
  background-color: transparent;
  margin-bottom: 0;
}

.breadcrumb-item {
  font-size: 0.95rem;
  font-weight: 500;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: white;
}

.breadcrumb-item.active {
  color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* Module Title & Description */
.module-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.module-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* Module Actions */
.module-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Module Image */
.module-image {
  position: relative;
  z-index: 1;
  text-align: center;
}

.module-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* ======================================
   MAIN CONTENT SECTION
   ====================================== */
.module-content-section {
  padding: 3rem 0;
  background-color: #ffffff;
}

/* ======================================
   MODULE CARD STYLING
   ====================================== */
.module-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.module-card .card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.module-card .card-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
}

.card-icon {
  color: #3b82f6;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.module-card .card-body {
  padding: 1.5rem;
}

/* ======================================
   REVIEW COUNTER STATS
   ====================================== */
.review-counter {
  text-align: center;
  padding: 1.25rem;
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
  margin: 0 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.review-counter:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  background-color: rgba(59, 130, 246, 0.08);
}

.review-counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1.2;
}

.review-counter-label {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* ======================================
   INFO CARD FOR HOW IT WORKS
   ====================================== */
.info-card {
  background-color: rgba(59, 130, 246, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 1.5rem;
  margin-top: 1rem;
}

.info-card h6 {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.info-card ol li, 
.info-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #64748b;
}

/* ======================================
   QUESTION REVIEW AREA
   ====================================== */
.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.question-badge {
  background-color: #3b82f6;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.timer-badge {
  background-color: #64748b;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Question Module and Topic Badges */
.question-module-topic {
  display: flex;
  align-items: center;
}

.question-module-topic .badge {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-secondary {
  background-color: var(--text-muted) !important;
}

/* Progress bar */
.progress {
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary);
  transition: width 0.5s ease;
}

/* Option Buttons */
.option-btn {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  background-color: white;
}

.option-btn:hover:not(.correct):not(.incorrect) {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

.option-marker {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #64748b;
  font-weight: 500;
  margin-right: 1rem;
  transition: all 0.2s;
}

.option-btn.selected {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.option-btn.selected .option-marker {
  background-color: #3b82f6;
  color: white;
}

.option-btn.correct {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

.option-btn.incorrect {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.option-marker.correct {
  background-color: #10b981;
  color: white;
}

.option-marker.incorrect {
  background-color: #ef4444;
  color: white;
}

/* Option Display (for flashcards) */
.option-display {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.125rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: white;
}

.option-display.correct {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

.option-display.selected-incorrect {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Feedback and Explanation */
.alert {
  border-radius: var(--border-radius);
  border: none;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-left: 4px solid var(--warning);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--info);
  border-left: 4px solid var(--info);
}

/* Button for check answer and next */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  color: #2563eb;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #2563eb;
}

/* Skip Question Button */
#skip-question-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  color: #64748b;
  background-color: transparent;
}

#skip-question-btn:hover {
  background-color: #f1f5f9;
  color: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

/* ======================================
   CONFIDENCE & DIFFICULTY RATING
   ====================================== */
#confidence-rating, #difficulty-rating {
  margin-top: 2rem;
  padding: 1.25rem;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#confidence-rating p, #difficulty-rating p {
  color: #64748b;
  font-size: 1rem;
}

#confidence-rating .btn, #difficulty-rating .btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#confidence-rating .btn:hover, #difficulty-rating .btn:hover {
  transform: translateY(-2px);
}

/* ======================================
   PRACTICE MODES
   ====================================== */
.practice-modes {
  padding: 1.5rem;
  background-color: rgba(59, 130, 246, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.practice-mode-card .card {
  transition: all 0.3s ease;
  border-width: 2px;
}

.practice-mode-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.practice-icon {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================================
   FEATURE ACCORDION
   ====================================== */
.feature-accordion .accordion-item {
  border: none;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.feature-accordion .accordion-button {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.feature-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(59, 130, 246, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-accordion .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
}

.feature-accordion .accordion-body {
  padding: 1rem;
  font-size: 0.95rem;
}

.feature-accordion .info-card {
  margin-top: 0.5rem;
  padding: 1rem;
}

/* ======================================
   FLASHCARD SYSTEM FOR MISSED QUESTIONS
   ====================================== */
.flashcard-container {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.flashcard {
  border-radius: 12px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.flashcard:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.flashcard-front, .flashcard-back {
  padding: 1.5rem;
}

.flashcard-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.module-topic-badge {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: var(--background-alt);
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
}

.flashcard-question, .flashcard-answer {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.flashcard-options {
  margin-bottom: 1rem;
}

.flashcard-explanation {
  background-color: rgba(59, 130, 246, 0.05);
  border-left: 3px solid var(--primary);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.flashcard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
}

.flashcard-counter {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Style the navigation buttons */
#prev-flashcard-btn, #next-flashcard-btn {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

#prev-flashcard-btn:disabled, #next-flashcard-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Style for the container when no missed questions exist */
#no-missed-questions {
  background-color: rgba(16, 185, 129, 0.05);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

#no-missed-questions .fas {
  display: block;
  margin: 0 auto 1rem;
  color: var(--success);
}

/* ======================================
   RESULTS PANEL
   ====================================== */
.results-panel {
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  text-align: center;
}

.completion-icon {
  font-size: 3.5rem;
  color: #f59e0b;
  margin-bottom: 1.5rem;
}

.review-score {
  font-size: 3.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.5rem 0;
}

.results-summary {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 2rem;
}

/* Retention Card Styling */
.retention-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.retention-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.retention-card .card-title {
  font-weight: 600;
  color: #64748b;
  font-size: 1.1rem;
}

.retention-card .display-6 {
  font-size: 2.5rem;
  font-weight: 700;
}

.text-primary {
  color: var(--primary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ======================================
   SPINNER AND LOADING
   ====================================== */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================
   MISSED QUESTIONS COUNTER
   ====================================== */
.missed-counter .badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
  background-color: #0f172a;
  color: #e2e8f0;
  padding-top: 4rem;
  position: relative;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-text {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #3b82f6;
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #3b82f6;
  text-decoration: none;
}

.newsletter-form .input-group {
  border-radius: 8px;
  overflow: hidden;
}

.newsletter-form .form-control {
  background-color: #1e293b;
  border: none;
  color: white;
  padding: 0.75rem 1rem;
}

.newsletter-form .form-control::placeholder {
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.copyright {
  color: #94a3b8;
  text-align: center;
  margin: 0;
}

/* ======================================
   RESPONSIVE STYLES
   ====================================== */
@media (max-width: 991.98px) {
  .module-title {
    font-size: 2.75rem;
  }
  
  .module-description {
    font-size: 1.1rem;
  }
  
  .module-image {
    margin-top: 2rem;
  }
  
  .review-counter {
    padding: 1rem;
    margin: 0 0.5rem;
  }
  
  .review-counter-number {
    font-size: 2rem;
  }
  
  .review-counter-label {
    font-size: 0.8rem;
  }
  
  .results-panel {
    padding: 1.5rem;
  }
  
  .completion-icon {
    font-size: 3rem;
  }
  
  .review-score {
    font-size: 3rem;
  }
  
  .flashcard-question, .flashcard-answer {
    font-size: 1rem;
  }
  
  .flashcard-front, .flashcard-back {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .module-detail-header {
    padding: 110px 0 70px;
  }
  
  .module-title {
    font-size: 2.25rem;
  }
  
  .review-counter {
    margin: 0 0.25rem;
  }
  
  .retention-card {
    margin-bottom: 1rem;
  }
  
  #confidence-rating, #difficulty-rating {
    padding: 1rem;
  }
  
  #confidence-rating .btn, #difficulty-rating .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .option-btn {
    padding: 0.75rem 1rem;
  }
  
  .option-marker {
    width: 25px;
    height: 25px;
    margin-right: 0.75rem;
  }
  
  .question-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .footer-title {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  .social-links {
    margin-bottom: 2rem;
  }
  
  .footer-bottom {
    margin-top: 2rem;
  }
  
  .practice-mode-card {
    margin-bottom: 1rem;
  }
  
  .flashcard-navigation {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  #prev-flashcard-btn, #next-flashcard-btn {
    flex: 1;
    justify-content: center;
  }
  
  .flashcard-counter {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .module-detail-header {
    padding: 100px 0 60px;
  }
  
  .module-title {
    font-size: 2rem;
  }
  
  .module-description {
    font-size: 1rem;
  }
  
  .review-counter-number {
    font-size: 1.75rem;
  }
  
  .review-score {
    font-size: 2.5rem;
  }
  
  .results-panel {
    padding: 1.25rem;
  }
  
  .completion-icon {
    font-size: 2.5rem;
  }
  
  #confidence-rating .btn, #difficulty-rating .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .retention-card .card-title {
    font-size: 0.9rem;
  }
  
  .retention-card .display-6 {
    font-size: 2rem;
  }
  
  .flashcard-front, .flashcard-back {
    padding: 1rem;
  }
  
  .flashcard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .module-topic-badge {
    margin-left: 0;
  }
}