/* =====================================================
   Topic Content Page Styles
   Enterprise-Level Design System
   ===================================================== */

/* =====================================================
   CSS Custom Properties for Topic Pages
   ===================================================== */
:root {
  --topic-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --topic-transition-fast: all 0.15s ease;
  --topic-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --topic-shadow-hover: 0 12px 40px rgba(99, 102, 241, 0.15);
  --topic-glow: 0 0 30px rgba(99, 102, 241, 0.2);
}

/* =====================================================
   Enterprise Animation Keyframes
   ===================================================== */
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(99, 102, 241, 0.3); }
  50% { border-color: rgba(99, 102, 241, 0.6); }
}

/* =====================================================
   Thin Fixed Navigation Bar
   ===================================================== */
.lesson-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(var(--bs-body-bg-rgb), 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: var(--topic-transition);
}

.lesson-nav-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.nav-bar-item:hover:not(.disabled):not(.nav-bar-title) {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  transform: translateY(-1px);
}

.nav-bar-item i {
  font-size: 1rem;
}

.nav-bar-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-bar-back {
  color: var(--bs-primary);
}

.nav-bar-back:hover {
  background: rgba(var(--bs-primary-rgb), 0.15);
}

.nav-bar-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  font-weight: 600;
  color: var(--bs-body-color);
}

.nav-bar-module {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.nav-bar-name {
  font-size: 0.95rem;
}

.nav-bar-complete {
  padding: 0.5rem 1rem;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(var(--bs-secondary-rgb), 0.1);
  border: 2px solid rgba(var(--bs-secondary-rgb), 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-bar-complete .complete-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-secondary);
  transition: all 0.3s ease;
}

.nav-bar-complete i {
  font-size: 1.1rem;
  color: var(--bs-secondary);
  transition: all 0.3s ease;
}

.nav-bar-complete:hover {
  background: rgba(var(--bs-success-rgb), 0.15);
  border-color: var(--bs-success);
  transform: translateY(-2px);
}

.nav-bar-complete:hover i,
.nav-bar-complete:hover .complete-text {
  color: var(--bs-success);
}

.nav-bar-complete.completed {
  background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.2), rgba(var(--bs-success-rgb), 0.3));
  border-color: var(--bs-success);
  animation: completePulse 2s ease-in-out infinite;
}

.nav-bar-complete.completed i,
.nav-bar-complete.completed .complete-text {
  color: var(--bs-success);
  font-weight: 700;
}

.nav-bar-complete.completed::after {
  content: '✓';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--bs-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(var(--bs-success-rgb), 0.4);
}

@keyframes completePulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(var(--bs-success-rgb), 0);
  }
}

/* Responsive Nav Bar */
@media (max-width: 768px) {
  .nav-bar-name {
    display: none;
  }
  
  .nav-bar-item span {
    display: none;
  }
  
  .nav-bar-item {
    padding: 0.5rem;
    min-width: 40px;
    justify-content: center;
  }
  
  .nav-bar-module {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  /* Keep complete button visible on mobile */
  .nav-bar-complete .complete-text {
    display: none;
  }
  
  .nav-bar-complete {
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    border-radius: 50%;
  }
}

/* Full Width Content Wrapper */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.content-body-fullwidth {
  width: 100%;
}

/* Floating TOC Sidebar */
.floating-toc {
  position: fixed;
  right: 20px;
  top: 170px;
  z-index: 999;
}

.toc-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.toc-content {
  position: absolute;
  right: 0;
  top: 60px;
  width: 280px;
  background: rgba(var(--bs-body-bg-rgb), 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.toc-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.toc-content .toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: var(--bs-primary);
}

.toc-content .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-content .toc-list li {
  margin-bottom: 0.5rem;
}

.toc-content .toc-link {
  display: flex;
  align-items: center;
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.toc-content .toc-link:hover {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  transform: translateX(4px);
}

.toc-content .toc-link.active {
  background: rgba(var(--bs-primary-rgb), 0.15);
  color: var(--bs-primary);
  font-weight: 600;
}

.toc-content .toc-link i {
  font-size: 0.7rem;
}

/* Bottom Section - Resources & Progress */
.bottom-section {
  border-top: 2px solid rgba(var(--bs-border-color-rgb), 0.2);
  padding-top: 4rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 16px;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--bs-primary), var(--bs-info));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.resource-card:hover::before {
  opacity: 1;
}

.resource-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.resource-card-content {
  flex: 1;
}

.resource-card-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.resource-card-content p {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.75rem;
}

.resource-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resource-meta .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
}

.resource-link-icon {
  color: var(--bs-primary);
  font-size: 1.2rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.resource-card:hover .resource-link-icon {
  opacity: 1;
  transform: translateX(4px);
}

.progress-tracker {
  position: sticky;
  top: 120px;
  padding: 2rem;
  background: rgba(var(--bs-success-rgb), 0.05);
  border: 2px solid rgba(var(--bs-success-rgb), 0.2);
  border-radius: 20px;
  text-align: center;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.progress-header i {
  font-size: 2rem;
}

.progress-header h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.progress-tracker p {
  margin-bottom: 1.5rem;
}

.progress-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
}

.progress-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

.progress-stats .stat i {
  font-size: 1.1rem;
}

/* Mobile Responsive for New Layout */
@media (max-width: 1200px) {
  .floating-toc {
    display: none;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .progress-tracker {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 1rem;
  }
  
  .resource-card {
    flex-direction: column;
    text-align: center;
  }
  
  .resource-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .resource-card-content h5 {
    font-size: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   HERO SECTION - ENTERPRISE DESIGN
   ============================================ */
.content-hero {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.08) 0%, 
    rgba(139, 92, 246, 0.06) 30%,
    rgba(16, 185, 129, 0.04) 70%,
    rgba(6, 182, 212, 0.05) 100%);
  padding: 130px 0 70px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s ease-out;
}

.content-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.content-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

/* Content Body */
.content-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bs-primary);
  display: inline-block;
}

.content-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bs-primary);
}

.content-body h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-body p {
  margin-bottom: 1.25rem;
  color: var(--bs-secondary-color);
}

.content-body ul, .content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

/* Definition Box - see Modern Definition Box section below */

/* Warning/Note Box */
.note-box {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.1) 0%,
    rgba(255, 193, 7, 0.05) 100%);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-left: 4px solid var(--bs-warning);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.note-box:hover {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.15) 0%,
    rgba(255, 193, 7, 0.08) 100%);
  transform: translateX(4px);
}

.note-box h4 {
  color: var(--bs-warning);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.note-box p,
.note-box div {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.note-box code {
  background: rgba(255, 193, 7, 0.15);
  color: var(--bs-warning);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

[data-bs-theme="light"] .note-box {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.08) 0%,
    rgba(255, 193, 7, 0.03) 100%);
  border-color: rgba(255, 193, 7, 0.12);
}

[data-bs-theme="light"] .note-box:hover {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.12) 0%,
    rgba(255, 193, 7, 0.05) 100%);
}

[data-bs-theme="light"] .note-box p,
[data-bs-theme="light"] .note-box div {
  color: #475569;
}

/* Comparison Table */
.comparison-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--bs-primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  vertical-align: top;
}

.comparison-table tr:hover td {
  background: rgba(99,102,241,.05);
}

/* ============================================
   CODE BLOCKS - ENTERPRISE DESIGN
   ============================================ */
pre[class*="language-"] {
  border-radius: 16px;
  margin: 2rem 0;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.25),
    0 0 1px rgba(255, 255, 255, 0.1) inset;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--topic-transition);
  overflow: hidden;
}

pre[class*="language-"]:hover {
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-2px);
}

pre[class*="language-"]::before {
  content: attr(data-language);
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  color: var(--bs-primary);
  border-radius: 0 16px 0 12px;
  backdrop-filter: blur(4px);
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-feature-settings: 'liga' 1, 'calt' 1;
}

/* Inline code */
:not(pre) > code {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--bs-primary);
  padding: 0.2em 0.55em;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: var(--topic-transition-fast);
}

:not(pre) > code:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
  border-color: rgba(99, 102, 241, 0.25);
}

[data-bs-theme="light"] :not(pre) > code {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border-color: rgba(99, 102, 241, 0.12);
}

/* Venn Diagram */
.diagram-container {
  margin: 2rem 0;
  text-align: center;
}

.venn-diagram {
  position: relative;
  height: 300px;
  margin: 2rem auto;
  max-width: 500px;
}

.venn-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.venn-circle:hover {
  opacity: 1;
}

.venn-math {
  background: rgba(239, 68, 68, 0.3);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.venn-cs {
  background: rgba(59, 130, 246, 0.3);
  bottom: 0;
  left: 0;
}

.venn-domain {
  background: rgba(34, 197, 94, 0.3);
  bottom: 0;
  right: 0;
}

.venn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bs-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
  font-style: italic;
}

/* Career Cards */
.career-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.career-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.2);
  border-color: var(--bs-primary);
}

.career-card h4 {
  color: var(--bs-primary);
  margin-bottom: 0.5rem;
}

.career-card .salary {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-success);
  margin: 0.5rem 0;
}

/* Button Improvements */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Reading Time */
.reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

/* Progress Indicator */
.lesson-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(99,102,241,0.1);
  z-index: 9999;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bs-primary), #8b5cf6);
  transition: width 0.1s;
}

/* TOC Sidebar */
.toc-sidebar {
  position: sticky;
  top: 100px;
}

.toc-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--bs-body-color);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: var(--bs-secondary-color);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: all 0.2s;
}

.toc-list a:hover, .toc-list a.active {
  color: var(--bs-primary);
  border-left-color: var(--bs-primary);
}

/* Lesson Navigation */
.lesson-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.lesson-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: all 0.3s;
}

.lesson-nav a:hover {
  border-color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.2);
}

.lesson-nav a.prev {
  justify-content: flex-start;
}

.lesson-nav a.next {
  justify-content: flex-end;
  text-align: right;
}

.lesson-nav .label {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  display: block;
}

.lesson-nav .title {
  font-weight: 600;
  display: block;
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
  z-index: 1000;
  transition: all 0.3s;
}

.scroll-top-btn.show {
  display: flex;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

/* ============================================
   ENTERPRISE SECTION STYLING
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--bs-primary), transparent);
}

.section-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  font-size: 1.5rem;
  color: var(--bs-primary);
  transition: all 0.3s ease;
}

.section-header:hover .section-number {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

.section-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-body-color);
  line-height: 1.3;
}

/* ========================================
   SUBSECTION TITLES
   ======================================== */
.subsection-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--bs-body-color);
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--bs-primary);
}

.subsection-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--bs-primary), var(--bs-info));
  border-radius: 2px;
}

/* Alternative subsection title without border */
h3.subsection-title.no-border {
  border-left: none;
  padding-left: 0;
}

h3.subsection-title.no-border::before {
  display: none;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--bs-body-color);
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Phase Details - Key Goal/Activities/Deliverables */
.col-md-4 small.text-secondary {
  color: var(--bs-body-color) !important;
  opacity: 0.85;
}

/* Improve secondary text readability */
.text-secondary {
  color: var(--bs-body-color) !important;
  opacity: 0.7;
}

/* Blockquote text readability */
blockquote .text-secondary,
.blockquote .text-secondary {
  color: var(--bs-body-color) !important;
  opacity: 0.85;
}

/* Paragraph text in content areas */
.p-4.border p,
.card-body p:not(.mb-0) {
  opacity: 0.9;
}

/* ========================================
   MODERN DEFINITION BOX - Premium Design
   ======================================== */
.definition-box-modern {
  background: linear-gradient(165deg, 
    rgba(30, 30, 46, 0.95) 0%, 
    rgba(37, 37, 53, 0.98) 50%,
    rgba(30, 30, 46, 0.95) 100%);
  border-radius: 16px;
  padding: 0;
  margin: 2.5rem 0;
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.15);
  overflow: hidden;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.definition-box-modern:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.definition-box-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--bs-primary) 0%, 
    var(--bs-info) 50%, 
    #a855f7 100%);
  opacity: 0.9;
}

.definition-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.08) 0%,
    rgba(99, 102, 241, 0.03) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.definition-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.definition-header-text {
  flex: 1;
  min-width: 0;
}

.definition-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bs-info);
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

.definition-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.definition-body {
  padding: 1.5rem;
}

.definition-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.definition-text:last-child {
  margin-bottom: 0;
}

.definition-text code {
  background: rgba(99, 102, 241, 0.15);
  color: var(--bs-info);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

/* Definition Subtext - Secondary explanation */
.definition-subtext {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--bs-secondary);
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(var(--bs-primary-rgb), 0.3);
}

.definition-highlight {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.12) 0%,
    rgba(139, 92, 246, 0.08) 100%);
  border-left: 3px solid var(--bs-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
}

.definition-highlight p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.definition-highlight strong {
  color: var(--bs-info);
}

/* Light Mode Support for Definition Box */
[data-bs-theme="light"] .definition-box-modern {
  background: linear-gradient(165deg, 
    #ffffff 0%, 
    #f8f9fc 50%,
    #ffffff 100%);
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 
    0 4px 6px rgba(99, 102, 241, 0.06),
    0 10px 30px rgba(99, 102, 241, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-bs-theme="light"] .definition-box-modern:hover {
  box-shadow: 
    0 8px 12px rgba(99, 102, 241, 0.08),
    0 20px 40px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.2);
}

[data-bs-theme="light"] .definition-header {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.06) 0%,
    rgba(99, 102, 241, 0.02) 100%);
  border-bottom-color: rgba(99, 102, 241, 0.06);
}

[data-bs-theme="light"] .definition-title {
  color: #1e293b;
}

[data-bs-theme="light"] .definition-text {
  color: #475569;
}

[data-bs-theme="light"] .definition-text code {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

[data-bs-theme="light"] .definition-highlight {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.05) 100%);
}

[data-bs-theme="light"] .definition-highlight p {
  color: #64748b;
}

/* Legacy support - old definition box structure */
.definition-quote-icon {
  display: none;
}

.definition-content {
  margin-top: 0;
}

/* Simple Definition Box (legacy) - upgrade to modern */
.definition-box {
  background: linear-gradient(165deg, 
    rgba(30, 30, 46, 0.95) 0%, 
    rgba(37, 37, 53, 0.98) 50%,
    rgba(30, 30, 46, 0.95) 100%);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-left: 4px solid var(--bs-primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.definition-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(99, 102, 241, 0.25);
}

.definition-box i {
  color: var(--bs-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.definition-box div {
  flex: 1;
}

.definition-box strong {
  color: var(--bs-info);
  font-weight: 600;
}

.definition-box p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

[data-bs-theme="light"] .definition-box {
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fc 50%, #ffffff 100%);
  border-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

[data-bs-theme="light"] .definition-box:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

[data-bs-theme="light"] .definition-box p,
[data-bs-theme="light"] .definition-box div {
  color: #475569;
}

/* ========================================
   INFO CALLOUT - Pro Tips & Notes
   ======================================== */
.info-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, 
    rgba(13, 110, 253, 0.08) 0%,
    rgba(13, 110, 253, 0.04) 100%);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-left: 4px solid var(--bs-info);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.info-callout:hover {
  background: linear-gradient(135deg, 
    rgba(13, 110, 253, 0.12) 0%,
    rgba(13, 110, 253, 0.06) 100%);
  border-color: rgba(13, 110, 253, 0.2);
  transform: translateX(4px);
}

.info-callout i {
  font-size: 1.35rem;
  color: var(--bs-info);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.info-callout strong {
  color: var(--bs-info);
  font-weight: 600;
}

.info-callout div {
  flex: 1;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.info-callout code {
  background: rgba(13, 110, 253, 0.15);
  color: var(--bs-info);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Light Mode Info Callout */
[data-bs-theme="light"] .info-callout {
  background: linear-gradient(135deg, 
    rgba(13, 110, 253, 0.06) 0%,
    rgba(13, 110, 253, 0.02) 100%);
  border-color: rgba(13, 110, 253, 0.1);
}

[data-bs-theme="light"] .info-callout:hover {
  background: linear-gradient(135deg, 
    rgba(13, 110, 253, 0.1) 0%,
    rgba(13, 110, 253, 0.04) 100%);
}

[data-bs-theme="light"] .info-callout div {
  color: #475569;
}

[data-bs-theme="light"] .info-callout code {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

/* Pillar Cards - Three Pillars */
.pillar-card {
  background: var(--bs-body-bg);
  border: 2px solid var(--bs-border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(99,102,241,.15);
  border-color: var(--bs-primary);
}

.pillar-card-header {
  padding: 1.5rem;
  text-align: center;
  background: rgba(99,102,241,.03);
  border-bottom: 2px solid var(--bs-border-color);
}

.pillar-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #dc3545, #e85d6a);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #198754, #20c997);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.bg-gradient-info {
  background: linear-gradient(135deg, #0dcaf0, #0d6efd);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, #6c757d, #adb5bd);
}

.pillar-card-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.pillar-card-body {
  padding: 1.5rem;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(99,102,241,.08);
  transition: all .2s;
}

.pillar-list li:last-child {
  border-bottom: none;
}

.pillar-list li:hover {
  padding-left: 8px;
  color: var(--bs-primary);
}

.pillar-list i {
  color: var(--bs-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Lifecycle Grid - Modern 2x3 Grid */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.lifecycle-card {
  background: var(--bs-body-bg);
  border: 2px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lifecycle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(99,102,241,.12);
  border-color: var(--bs-primary);
}

.lifecycle-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

.lifecycle-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: white;
  font-size: 1.75rem;
}

.lifecycle-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lifecycle-card p {
  color: var(--bs-body-color);
  opacity: 0.85;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.lifecycle-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,193,7,.15);
  border: 1px solid rgba(255,193,7,.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.lifecycle-highlight i {
  color: var(--bs-warning);
}

.lifecycle-highlight strong {
  color: var(--bs-warning);
  font-size: 1.1rem;
}

.lifecycle-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bs-primary);
}

/* Responsive */
@media (max-width: 991px) {
  .toc-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .lesson-nav {
    grid-template-columns: 1fr;
  }
  
  .venn-diagram {
    height: 250px;
  }
  
  .venn-circle {
    width: 150px;
    height: 150px;
    font-size: 0.8rem;
  }
  
  .section-number {
    font-size: 2.5rem;
  }
  
  .lifecycle-grid {
    grid-template-columns: 1fr;
  }
  
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CAREER CARDS - MODERN DESIGN ===== */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.career-card-modern {
  position: relative;
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.career-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.career-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.career-card-modern:hover::before {
  opacity: 1;
}

.career-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.career-badge.badge-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.career-badge.badge-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.career-badge.badge-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.career-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.career-card-modern:hover .career-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.career-icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.career-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--bs-body-color);
}

.career-salary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(var(--bs-success-rgb), 0.1);
  border-left: 3px solid var(--bs-success);
  border-radius: 8px;
}

.career-salary i {
  color: var(--bs-success);
  font-size: 1.2rem;
}

.career-salary span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-success);
}

.career-salary small {
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
}

.career-description {
  color: var(--bs-secondary-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.career-responsibilities {
  background: rgba(var(--bs-info-rgb), 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.career-responsibilities h6 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: var(--bs-info);
}

.career-responsibilities ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-responsibilities ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--bs-body-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

.career-responsibilities ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--bs-success);
  font-size: 0.75rem;
}

.career-skills-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
}

.skill-badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.skill-badge.skill-primary {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.skill-badge.skill-primary:hover {
  background: rgba(var(--bs-primary-rgb), 0.2);
  transform: translateY(-2px);
}

.skill-badge.skill-success {
  background: rgba(var(--bs-success-rgb), 0.1);
  color: var(--bs-success);
  border-color: rgba(var(--bs-success-rgb), 0.2);
}

.skill-badge.skill-success:hover {
  background: rgba(var(--bs-success-rgb), 0.2);
  transform: translateY(-2px);
}

.skill-badge.skill-info {
  background: rgba(var(--bs-info-rgb), 0.1);
  color: var(--bs-info);
  border-color: rgba(var(--bs-info-rgb), 0.2);
}

.skill-badge.skill-info:hover {
  background: rgba(var(--bs-info-rgb), 0.2);
  transform: translateY(-2px);
}

.skill-badge.skill-warning {
  background: rgba(var(--bs-warning-rgb), 0.1);
  color: var(--bs-warning);
  border-color: rgba(var(--bs-warning-rgb), 0.2);
}

.skill-badge.skill-warning:hover {
  background: rgba(var(--bs-warning-rgb), 0.2);
  transform: translateY(-2px);
}

/* Responsive for Career Cards */
@media (max-width: 768px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
  
  .career-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .career-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .career-icon-wrapper i {
    font-size: 1.5rem;
  }
  
  .career-title {
    font-size: 1.25rem;
  }
}

/* ===== COMPARISON TABLE - MODERN DESIGN ===== */
.comparison-table-modern {
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 20px;
  overflow: hidden;
  margin: 2rem 0;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  background: linear-gradient(135deg, rgba(99,102,241,.15) 0%, rgba(139,92,246,.15) 100%);
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.3);
}

.comparison-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.comparison-col.header-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.comparison-col.header-col i {
  font-size: 1.2rem;
  color: var(--bs-primary);
}

.comparison-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.comparison-icon i {
  font-size: 1.3rem;
  color: white;
}

.comparison-col h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
  transition: all 0.3s ease;
}

.comparison-row:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-col.aspect-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.comparison-col.aspect-col i {
  color: var(--bs-primary);
  font-size: 1.1rem;
}

.question-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.skills-list span {
  padding: 0.4rem 0.8rem;
  background: rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  border-left: 2px solid var(--bs-primary);
}

.tools-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tool-badge {
  padding: 0.4rem 0.8rem;
  background: rgba(var(--bs-info-rgb), 0.1);
  border: 1px solid rgba(var(--bs-info-rgb), 0.3);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-info);
}

.role-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  margin: 0.25rem;
}

/* Example Box */
.example-box {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(139,92,246,.08) 100%);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
  border-radius: 20px;
  padding: 2rem;
}

.example-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.example-header i {
  font-size: 2rem;
  color: var(--bs-warning);
}

.example-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.example-scenario {
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.scenario-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bs-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.scenario-text {
  font-size: 1.1rem;
  margin: 0;
}

.example-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.role-example {
  background: rgba(var(--bs-body-bg-rgb), 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  transition: all 0.3s ease;
}

.role-example:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.role-example-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: white;
  font-weight: 700;
}

.role-example-header i {
  font-size: 1.2rem;
}

.role-example p {
  padding: 1.25rem;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Comparison Table */
@media (max-width: 991px) {
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
  }
  
  .comparison-header {
    display: none;
  }
  
  .comparison-row {
    border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  .comparison-col.aspect-col {
    background: rgba(var(--bs-primary-rgb), 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  
  .comparison-col {
    padding: 0.75rem;
  }
  
  .comparison-col::before {
    content: attr(data-label);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--bs-primary);
  }
}

/* ===== KEY TAKEAWAYS - ENTERPRISE DESIGN ===== */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.takeaway-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.takeaway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.takeaway-card:hover::before {
  opacity: 1;
}

.takeaway-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.takeaway-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.takeaway-card:hover .takeaway-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.takeaway-icon i {
  font-size: 1.5rem;
  color: white;
}

.takeaway-content {
  position: relative;
  z-index: 1;
}

.takeaway-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.takeaway-content p {
  font-size: 0.95rem;
  color: var(--bs-secondary-color);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Takeaways */
@media (max-width: 768px) {
  .takeaways-grid {
    grid-template-columns: 1fr;
  }
  
  .takeaway-card {
    flex-direction: column;
    text-align: center;
  }
  
  .takeaway-icon {
    margin: 0 auto;
  }
  
  .example-roles {
    grid-template-columns: 1fr;
  }
}

/* ===== LESSON NAVIGATION - MODERN DESIGN ===== */
.lesson-nav-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(var(--bs-border-color-rgb), 0.2);
}

.nav-card-modern {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 16px;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--bs-primary), var(--bs-info));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-card-modern:not(.disabled):hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.nav-card-modern:not(.disabled):hover::before {
  opacity: 1;
}

.nav-card-modern.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-card-modern.nav-back {
  background: linear-gradient(135deg, rgba(99,102,241,.1) 0%, rgba(139,92,246,.1) 100%);
  border: 2px solid rgba(var(--bs-primary-rgb), 0.3);
}

.nav-card-modern.nav-back:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.nav-card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.nav-card-modern:hover .nav-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.nav-card-modern.disabled .nav-card-icon {
  background: rgba(var(--bs-secondary-rgb), 0.3);
}

.nav-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-card-label {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nav-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bs-body-color);
}

.nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* When prev is disabled, align next button to the right */
.nav-prev-next:has(.nav-prev.disabled) {
  grid-template-columns: 1fr;
  justify-items: end;
}

.nav-prev-next:has(.nav-prev.disabled) .nav-prev.disabled {
  display: none;
}

.nav-prev-next:has(.nav-prev.disabled) .nav-next {
  max-width: 500px;
}

/* When next is disabled, align prev button to the left */
.nav-prev-next:has(.nav-next.disabled) {
  grid-template-columns: 1fr;
  justify-items: start;
}

.nav-prev-next:has(.nav-next.disabled) .nav-next.disabled {
  display: none;
}

.nav-prev-next:has(.nav-next.disabled) .nav-prev {
  max-width: 500px;
}

.nav-card-modern.nav-prev .nav-card-icon {
  order: -1;
}

.nav-card-modern.nav-next {
  text-align: right;
  justify-self: end;
}

/* ============================================
   Footer Styles
   ============================================ */
.lesson-footer {
  background: linear-gradient(180deg, transparent, rgba(var(--bs-primary-rgb), 0.03));
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
}

.footer-title i {
  color: var(--bs-primary);
}

.footer-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.footer-resource-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 8px;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-resource-link:hover {
  background: rgba(var(--bs-primary-rgb), 0.1);
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  transform: translateX(4px);
}

.footer-resource-link i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  opacity: 0.7;
}

.footer-resource-link:hover i {
  opacity: 1;
}

#footerCompleteBtn {
  position: relative;
  overflow: hidden;
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#footerCompleteBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--bs-success-rgb), 0.3);
}

#footerCompleteBtn.completed {
  background: var(--bs-success);
  border-color: var(--bs-success);
  color: white;
}

#footerCompleteBtn.completed::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
}

.footer-stat i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  opacity: 0.7;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--bs-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--bs-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--bs-primary);
}

/* Enhanced Copyright Section */
.copyright-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  width: 100%;
  padding: 1.5rem 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
}

.copyright-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--bs-body-color);
}

.copyright-brand i {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--bs-secondary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.copyright-text .heart {
  color: #e25555;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.copyright-author {
  font-weight: 500;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright-author:hover {
  color: var(--bs-primary);
}

.copyright-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.copyright-links a {
  font-size: 0.8rem;
  color: var(--bs-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.copyright-links a:hover {
  color: var(--bs-primary);
}

.copyright-links a i {
  font-size: 0.75rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .lesson-footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-resources {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .copyright-section {
    padding: 1rem 0 0;
  }
  
  .copyright-links {
    gap: 1rem;
  }
}

/* ============================================
   Code Example Box Styles
   ============================================ */
.code-example-box {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-header {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-info-rgb), 0.1));
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.code-header i {
  color: var(--bs-primary);
}

.code-example-box pre {
  margin: 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}

.code-example-box code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.nav-card-modern.nav-next .nav-card-icon {
  order: 1;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-prev-next {
    grid-template-columns: 1fr;
  }
  
  .nav-card-modern {
    padding: 1.25rem 1.5rem;
  }
  
  .nav-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
  }
  
  .nav-card-title {
    font-size: 1rem;
  }
  
  .nav-card-modern:not(.disabled):hover {
    transform: translateY(-4px);
  }
}

/* Step-by-Step Installation Guide Styles - Enhanced */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
  position: relative;
}

.step-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  padding: 2rem;
  background: rgba(var(--bs-primary-rgb), 0.03);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover {
  background: rgba(var(--bs-primary-rgb), 0.06);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--bs-primary), var(--bs-info));
  border-radius: 16px 0 0 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-item:hover::before {
  opacity: 1;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 58px;
  top: 100%;
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.2));
  z-index: 0;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  color: white;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.35);
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.5);
}

.step-content {
  flex: 1;
  padding-top: 0;
}

.step-content h5 {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bs-body-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.3;
}

.step-content h5 i {
  opacity: 0.7;
}

.step-content p {
  color: var(--bs-secondary-color);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.step-content p:last-child:not(:has(+ *)) {
  margin-bottom: 0;
}

.step-content p strong {
  color: var(--bs-body-color);
  font-weight: 600;
}

.step-content pre {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #000000 !important;
  overflow-x: auto;
  position: relative;
}

.step-content pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  background: transparent !important;
}

/* Copy Code Button */
.code-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(var(--bs-primary-rgb), 0.2);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.4);
  color: var(--bs-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
}

.code-copy-btn:hover {
  background: rgba(var(--bs-primary-rgb), 0.3);
  border-color: var(--bs-primary);
  transform: scale(1.05);
}

.code-copy-btn.copied {
  background: rgba(var(--bs-success-rgb), 0.3);
  border-color: var(--bs-success);
  color: var(--bs-success);
}

.code-copy-btn i {
  font-size: 1rem;
}

.step-content .alert {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border-left: 4px solid;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-content .alert-warning {
  background: rgba(var(--bs-warning-rgb), 0.12);
  border-left-color: var(--bs-warning);
  color: var(--bs-body-color);
}

.step-content .alert strong {
  color: var(--bs-warning);
}

.step-content ol,
.step-content ul {
  margin-top: 1rem;
  padding-left: 1.75rem;
}

.step-content ol li,
.step-content ul li {
  margin-bottom: 0.75rem;
  color: var(--bs-secondary-color);
  line-height: 1.8;
  font-size: 1.05rem;
}

.step-content ol li::marker {
  color: var(--bs-primary);
  font-weight: 700;
}

.step-content .text-secondary.small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

/* Code inline styling within steps */
.step-content code:not(pre code) {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  font-weight: 500;
}

/* Keyboard key styling */
.step-content kbd {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-info-rgb), 0.15));
  border: 1.5px solid rgba(var(--bs-primary-rgb), 0.4);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--bs-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: inline-block;
}

/* Responsive steps */
@media (max-width: 768px) {
  .step-list {
    gap: 2rem;
  }
  
  .step-item {
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .step-item:hover {
    transform: translateX(4px);
  }
  
  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 12px;
  }
  
  .step-item:not(:last-child)::after {
    left: 50px;
    height: 2rem;
  }
  
  .step-content h5 {
    font-size: 1.2rem;
  }
  
  .step-content p,
  .step-content ol li,
  .step-content ul li {
    font-size: 1rem;
  }
  
  .step-content pre {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ===================================
   ASSIGNMENT PAGE STYLES
   =================================== */

/* Assignment Hero */
.assignment-hero {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-info-rgb), 0.1) 100%);
  padding: 120px 0 60px;
}

.assignment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.assignment-header {
  text-align: center;
}

.assignment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--bs-body-color);
}

.meta-item i {
  font-size: 1.25rem;
  color: var(--bs-primary);
}

/* Assignment Overview Box */
.assignment-overview-box {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08) 0%, rgba(var(--bs-info-rgb), 0.08) 100%);
  border: 2px solid rgba(var(--bs-primary-rgb), 0.25);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.assignment-score-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.3);
}

.score-inner {
  width: 140px;
  height: 140px;
  background: var(--bs-body-bg);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.score-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bs-secondary);
  margin-top: 0.25rem;
}

.checklist-modern {
  list-style: none;
  padding-left: 0;
}

.checklist-modern li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.checklist-modern li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--bs-success);
  font-size: 1.1rem;
}

/* Submission Box */
.submission-box {
  background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.05) 0%, rgba(var(--bs-primary-rgb), 0.05) 100%);
  border: 2px solid rgba(var(--bs-success-rgb), 0.3);
  border-radius: 16px;
  padding: 2.5rem;
}

.submission-requirement {
  background: var(--bs-body-bg);
  border: 2px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.submission-requirement:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.requirement-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.requirement-content h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--bs-body-color);
  font-size: 1.1rem;
}

.requirement-content p {
  color: var(--bs-secondary);
  margin-bottom: 0.75rem;
}

.requirement-content ul,
.requirement-content ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.requirement-content ul li,
.requirement-content ol li {
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.requirement-content ul li:last-child,
.requirement-content ol li:last-child {
  margin-bottom: 0;
}

/* Grading Table */
.grading-table-wrapper {
  background: var(--bs-body-bg);
  border: 2px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.grading-table {
  margin-bottom: 0;
}

.grading-table thead {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.12) 0%, rgba(var(--bs-info-rgb), 0.12) 100%);
}

.grading-table thead th {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  color: var(--bs-primary);
  border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.25);
}

.grading-table tbody td {
  padding: 1.25rem 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
}

.grading-table tbody tr:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
}

.grading-table tbody tr.table-active {
  background: rgba(var(--bs-success-rgb), 0.08);
  font-weight: 600;
}

.grading-table tbody tr.table-active:hover {
  background: rgba(var(--bs-success-rgb), 0.12);
}

.grading-table .badge {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  min-width: 45px;
  display: inline-block;
}

/* Section Headers for Assignments */
#tasks .section-header,
#submission .section-header,
#grading .section-header {
  margin-bottom: 2rem;
}

#tasks .section-header h2,
#submission h2,
#grading .section-header h2 {
  font-weight: 700;
  font-size: 2rem;
  color: var(--bs-body-color);
}

/* Stats cards in footer */
.stat-card {
  background: rgba(var(--bs-primary-rgb), 0.08);
  border: 2px solid rgba(var(--bs-primary-rgb), 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(var(--bs-primary-rgb), 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bs-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .assignment-meta {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  
  .assignment-score-circle {
    width: 140px;
    height: 140px;
    margin: 2rem auto 0;
  }
  
  .score-inner {
    width: 120px;
    height: 120px;
  }
  
  .score-value {
    font-size: 2.5rem;
  }
  
  .submission-requirement {
    text-align: left;
  }
  
  .requirement-icon {
    margin-left: 0;
  }
}

/* ============================================
   Practice Questions Section
   ============================================ */

.practice-questions {
  border-color: rgba(var(--bs-primary-rgb), 0.3) !important;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-dark-rgb), 0.3)) !important;
}

.practice-questions h4 {
  color: var(--bs-body-color);
  font-weight: 600;
  border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.3);
  padding-bottom: 0.75rem;
}

.practice-questions .accordion-item {
  margin-bottom: 0.5rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.practice-questions .accordion-button {
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: var(--bs-body-color);
  box-shadow: none !important;
}

.practice-questions .accordion-button:not(.collapsed) {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
}

.practice-questions .accordion-button::after {
  filter: invert(1);
}

[data-bs-theme="light"] .practice-questions .accordion-button::after {
  filter: none;
}

.practice-questions .accordion-body {
  background: rgba(var(--bs-dark-rgb), 0.2);
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  padding: 1.5rem;
}

[data-bs-theme="light"] .practice-questions .accordion-body {
  background: rgba(var(--bs-light-rgb), 0.5);
}

.practice-questions details {
  margin-top: 1rem;
}

.practice-questions details summary {
  cursor: pointer;
  user-select: none;
}

.practice-questions details[open] summary {
  margin-bottom: 1rem;
}

.practice-questions pre {
  margin: 0;
  border-radius: 8px;
}

.practice-questions ul,
.practice-questions ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.practice-questions li {
  margin-bottom: 0.5rem;
}

/* Badge styling in practice questions */
.practice-questions .badge {
  font-size: 0.7rem;
  padding: 0.35em 0.65em;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .practice-questions {
    padding: 1rem !important;
  }
  
  .practice-questions .accordion-button {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  
  .practice-questions .accordion-body {
    padding: 1rem;
  }
}

/* ============================================
   Chart / Figure Display Styles
   ============================================ */

/* Chart container with proper sizing and centering */
.chart-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 16px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.chart-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.chart-container .chart-caption {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  font-style: italic;
}

.chart-container .chart-caption strong {
  color: var(--bs-primary);
  font-style: normal;
}

/* Inline chart images (for simpler usage with my-4 class) */
.my-4 > img.img-fluid {
  max-width: 650px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.my-4 > img.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.my-4 > .text-secondary.small {
  max-width: 650px;
  margin: 0.75rem auto 0;
  text-align: center;
  font-style: italic;
  padding: 0 1rem;
}

/* Chart gallery grid for multiple charts */
.chart-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.chart-gallery .chart-item {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 12px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-gallery .chart-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.chart-gallery .chart-item img {
  width: 100%;
  height: auto;
  display: block;
}

.chart-gallery .chart-item figcaption {
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  background: rgba(var(--bs-body-bg-rgb), 0.8);
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
  .chart-container {
    max-width: 100%;
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .my-4 > img.img-fluid {
    max-width: 100%;
    border-radius: 8px;
  }
  
  .chart-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Large screens - slightly bigger charts */
@media (min-width: 1200px) {
  .chart-container {
    max-width: 750px;
  }
  
  .my-4 > img.img-fluid {
    max-width: 700px;
  }
}

/* ============================================
   Interactive Chart.js Containers
   ============================================ */

/* Container for interactive charts */
.interactive-chart {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 16px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.interactive-chart .chart-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
}

.interactive-chart .chart-title i {
  color: var(--bs-primary);
  margin-right: 0.5rem;
}

.interactive-chart canvas {
  max-width: 100%;
}

.interactive-chart .chart-caption {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  font-style: italic;
}

/* Chart height variations */
.chart-height-sm { height: 250px; }
.chart-height-md { height: 350px; }
.chart-height-lg { height: 450px; }
.chart-height-xl { height: 550px; }

/* Side-by-side charts */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.charts-row .interactive-chart {
  margin: 0;
}

/* Comparison table with visual bars */
.visual-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
}

.visual-comparison-table th {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.visual-comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  vertical-align: middle;
}

.visual-comparison-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

/* Visual bar for comparison */
.comparison-bar {
  height: 8px;
  background: rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.comparison-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

.comparison-bar-fill.primary { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.comparison-bar-fill.success { background: linear-gradient(90deg, #10b981, #34d399); }
.comparison-bar-fill.info { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.comparison-bar-fill.warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Infographic style comparison */
.comparison-infographic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.comparison-item {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 16px;
  border: 2px solid transparent;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.comparison-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--item-color, var(--bs-primary));
}

.comparison-item:hover {
  border-color: var(--item-color, var(--bs-primary));
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.comparison-item .item-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--item-color, var(--bs-primary)), var(--item-color-alt, var(--bs-info)));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-item .item-icon i {
  font-size: 1.75rem;
  color: white;
}

.comparison-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.comparison-item p {
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.comparison-item .item-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
}

.comparison-item .stat {
  text-align: center;
}

.comparison-item .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--item-color, var(--bs-primary));
}

.comparison-item .stat-label {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom colors for comparison items */
.comparison-item.primary { --item-color: #6366f1; --item-color-alt: #8b5cf6; }
.comparison-item.success { --item-color: #10b981; --item-color-alt: #34d399; }
.comparison-item.info { --item-color: #06b6d4; --item-color-alt: #22d3ee; }
.comparison-item.warning { --item-color: #f59e0b; --item-color-alt: #fbbf24; }
.comparison-item.danger { --item-color: #ef4444; --item-color-alt: #f87171; }
.comparison-item.purple { --item-color: #8b5cf6; --item-color-alt: #a78bfa; }

/* =============================================
   LIGHT MODE FIXES FOR CARD BACKGROUNDS
   ============================================= */

/* Fix cards with bg-dark class in light mode */
[data-bs-theme="light"] .card.bg-dark {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="light"] .card.bg-dark .card-body {
  color: #1e293b !important;
}

[data-bs-theme="light"] .card.bg-dark .card-title {
  color: inherit !important;
}

[data-bs-theme="light"] .card.bg-dark .card-text {
  color: #334155 !important;
}

[data-bs-theme="light"] .card.bg-dark .card-text.small,
[data-bs-theme="light"] .card.bg-dark .text-muted {
  color: #64748b !important;
}

[data-bs-theme="light"] .card.bg-dark.border-danger {
  border-color: rgba(220, 53, 69, 0.3) !important;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
}

[data-bs-theme="light"] .card.bg-dark.border-warning {
  border-color: rgba(255, 193, 7, 0.3) !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
}

[data-bs-theme="light"] .card.bg-dark.border-success {
  border-color: rgba(25, 135, 84, 0.3) !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

[data-bs-theme="light"] .card.bg-dark.border-info {
  border-color: rgba(13, 202, 240, 0.3) !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
}

[data-bs-theme="light"] .card.bg-dark.border-primary {
  border-color: rgba(99, 102, 241, 0.3) !important;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
}

/* Fix bg-dark bg-opacity elements in light mode */
[data-bs-theme="light"] .bg-dark.bg-opacity-50 {
  background: rgba(241, 245, 249, 0.9) !important;
}

[data-bs-theme="light"] .bg-dark.bg-opacity-25 {
  background: rgba(248, 250, 252, 0.9) !important;
}

/* Practice questions container fix */
[data-bs-theme="light"] .practice-questions.bg-dark {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
}

[data-bs-theme="light"] .practice-questions h4,
[data-bs-theme="light"] .practice-questions p {
  color: #1e293b !important;
}

[data-bs-theme="light"] .practice-questions .text-secondary {
  color: #64748b !important;
}

/* Accordion items in light mode */
[data-bs-theme="light"] .accordion-item.bg-transparent {
  background: rgba(248, 250, 252, 0.5) !important;
}

[data-bs-theme="light"] .accordion-button.bg-transparent {
  background: rgba(241, 245, 249, 0.8) !important;
  color: #1e293b !important;
}

[data-bs-theme="light"] .accordion-button.bg-transparent:not(.collapsed) {
  background: rgba(99, 102, 241, 0.08) !important;
}

[data-bs-theme="light"] .accordion-body {
  color: #334155 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .interactive-chart {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .charts-row {
    grid-template-columns: 1fr;
  }
  
  .chart-height-lg,
  .chart-height-xl {
    height: 350px;
  }
  
  .comparison-infographic {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Assignment Page Styles
   ============================================ */

/* Scenario Card */
.scenario-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.scenario-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(99, 102, 241, 0.15);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.scenario-header i {
  font-size: 1.75rem;
  color: var(--bs-primary);
}

.scenario-header h4 {
  margin: 0;
  font-weight: 700;
  color: var(--bs-body-color);
}

.scenario-body {
  padding: 1.5rem;
}

.scenario-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
}

.scenario-meta .meta-item {
  font-size: 0.9rem;
}

.scenario-meta .meta-item strong {
  color: var(--bs-primary);
  margin-right: 0.5rem;
}

.scenario-body p {
  color: var(--bs-body-color);
  opacity: 0.9;
  margin-bottom: 0;
  line-height: 1.7;
}

/* Light mode adjustments for assignment cards */
[data-bs-theme="light"] .scenario-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.25);
}

[data-bs-theme="light"] .scenario-header {
  background: rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scenario-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .scenario-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ===== UTILITY CLASSES TO REPLACE INLINE STYLES ===== */

/* Step Badge - numbered circles for process steps */
.step-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Formula Display - for mathematical formulas */
.formula-display {
  font-size: 1.2rem;
}

/* Monospace Block - for code/formula styled paragraphs */
.monospace-block {
  font-family: 'JetBrains Mono', monospace;
  margin-left: 2rem;
}

/* Table column widths */
.col-width-30 {
  width: 30%;
}

/* TOC Separator - border for table of contents sections */
.toc-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .toc-separator {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Assignment boxes - various colored backgrounds */
.assignment-box-primary {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.assignment-box-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.assignment-box-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.assignment-box-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Gradient header box */
.gradient-header-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-left: 4px solid var(--bs-primary);
}

/* Dark box - for code/data sections */
.dark-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .dark-box {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Dashed box - for file upload areas */
.dashed-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(99, 102, 241, 0.5);
}

[data-bs-theme="light"] .dashed-box {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Gradient box - for success/completion sections */
.gradient-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
}

/* Border left primary */
.border-left-primary {
  border-left: 4px solid var(--bs-primary) !important;
}

.border-left-secondary {
  border-left: 3px solid var(--bs-secondary);
}

/* Code display - large inline code */
.code-display {
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
}

[data-bs-theme="light"] .code-display {
  background: rgba(0, 0, 0, 0.08);
}

/* Large icon */
.large-icon {
  font-size: 4rem;
}

/* Muted list */
.muted-list {
  color: var(--bs-secondary);
}

/* Submit page specific styles */
.submit-hint-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .submit-hint-box {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Success message - hidden by default */
#successMessage {
  display: none;
}

/* Colored headings */
.text-primary-heading {
  color: var(--bs-primary);
}

.text-success-heading {
  color: var(--bs-success);
}

/* =====================================================
   MISSING ENTERPRISE STYLES
   ===================================================== */

/* Nav Bar Previous/Next Navigation */
.nav-bar-prev,
.nav-bar-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--bs-body-color);
  background: transparent;
  border: none;
}

.nav-bar-prev:hover,
.nav-bar-next:hover {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  transform: translateY(-1px);
}

.nav-bar-prev i {
  transition: transform 0.3s ease;
}

.nav-bar-next i {
  transition: transform 0.3s ease;
}

.nav-bar-prev:hover i {
  transform: translateX(-3px);
}

.nav-bar-next:hover i {
  transform: translateX(3px);
}

/* Content Card - Modern Glass Morphism */
.content-card {
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  box-shadow: 0 8px 32px rgba(var(--bs-primary-rgb), 0.12);
  transform: translateY(-2px);
}

[data-bs-theme="light"] .content-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Practice Section - Enhanced Design */
.practice-section {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 3rem;
}

.practice-section .practice-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.practice-section .practice-title i {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Takeaway Item - For Individual Takeaways */
.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 12px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
  transition: all 0.3s ease;
}

.takeaway-item:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
  transform: translateX(4px);
}

.takeaway-item i {
  color: var(--bs-success);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Legend Styles - For Charts and Diagrams */
.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 12px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--bs-body-color);
  font-weight: 500;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.legend-dot.required {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.legend-dot.optional {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.legend-dot.pending {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

/* Enhanced Footer Resource Link */
.footer-resource-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(var(--bs-body-bg-rgb), 0.4);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 12px;
  color: var(--bs-body-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-resource-link:hover {
  background: rgba(var(--bs-primary-rgb), 0.1);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.15);
}

.footer-resource-link i {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Footer Stats Enhancement */
.footer-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.3);
  border-radius: 12px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
  transition: all 0.3s ease;
}

.footer-stat:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
  transform: translateY(-2px);
}

.footer-stat i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Enhanced Badge Styles */
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-primary);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.25), rgba(139, 92, 246, 0.25));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.2);
}

/* Role Badge - For Career/Role Labels */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.role-badge:hover {
  transform: scale(1.05);
}

/* Meta Item - For Metadata Display */
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--bs-secondary);
  font-weight: 500;
}

.meta-item i {
  opacity: 0.75;
}

/* Section Number Badge */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  color: white;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.3);
}

/* Gradient Text Utility */
.gradient-text {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lead Text Enhancement */
.lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--bs-body-color);
  opacity: 0.9;
}

/* Enhanced Breadcrumb Item */
.breadcrumb-item {
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--bs-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--bs-primary);
}

.breadcrumb-item.active {
  color: var(--bs-body-color);
  font-weight: 500;
}

/* Progress Text Label */
.progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Counter Badge */
.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: var(--bs-primary);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Heart Icon Animation */
.heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Feature Card Enhancement */
.feature-card {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(var(--bs-primary-rgb), 0.12);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 16px;
  font-size: 1.75rem;
}

/* Question Text Enhancement */
.question-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--bs-body-color);
  margin-bottom: 1rem;
}

/* Check Button Enhancement */
.check-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.4);
}

.check-btn:active {
  transform: translateY(0);
}

/* Spinner Enhancement */
.spinner-border {
  border-width: 3px;
}

.spinner-border-sm {
  border-width: 2px;
}

/* Alert Enhancements */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
}

.alert-info {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 182, 212, 0.15));
  border-left: 4px solid var(--bs-info);
  color: var(--bs-body-color);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(245, 158, 11, 0.15));
  border-left: 4px solid var(--bs-warning);
  color: var(--bs-body-color);
}

.alert-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
  border-left: 4px solid var(--bs-success);
  color: var(--bs-body-color);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
  border-left: 4px solid var(--bs-danger);
  color: var(--bs-body-color);
}

/* Glass Card Enhancement for Topic Pages */
.glass-card {
  background: rgba(var(--bs-body-bg-rgb), 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(var(--bs-primary-rgb), 0.1);
}

/* Dark Box Enhancement */
.dark-box {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  color: #e2e8f0;
}

[data-bs-theme="light"] .dark-box {
  background: rgba(15, 23, 42, 0.9);
}

/* Accordion Item Enhancement */
.accordion-item {
  background: transparent;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  color: var(--bs-body-color);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(139, 92, 246, 0.1));
  color: var(--bs-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.accordion-button::after {
  background-size: 1rem;
  transition: transform 0.3s ease;
}

.accordion-body {
  padding: 1.25rem;
  background: rgba(var(--bs-body-bg-rgb), 0.3);
}

/* Form Controls Enhancement */
.form-control {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 2px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(var(--bs-body-bg-rgb), 0.8);
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.1);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-body-color);
  margin-bottom: 0.5rem;
}

/* Table Enhancement */
.table {
  --bs-table-bg: transparent;
}

.table > thead {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), rgba(139, 92, 246, 0.08));
}

.table > thead th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 1rem;
  border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.2);
}

.table > tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.table-hover > tbody > tr:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
}

/* Card Enhancement */
.card {
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), rgba(139, 92, 246, 0.08));
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--bs-secondary);
  line-height: 1.6;
}

.card-footer {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  padding: 1rem 1.25rem;
}

/* Button Enhancement */
.btn {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bs-primary), #8b5cf6);
  border: none;
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5558e8, #7c4dff);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.25);
}

.btn-outline-success {
  border: 2px solid var(--bs-success);
  color: var(--bs-success);
}

.btn-outline-success:hover {
  background: var(--bs-success);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--bs-success-rgb), 0.25);
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .nav-bar-prev span,
  .nav-bar-next span {
    display: none;
  }
  
  .practice-section {
    padding: 1.5rem;
  }
  
  .legend-items {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .content-card {
    border-radius: 12px;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-icon-wrapper {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

/* =====================================================
   Additional Enterprise Styles
   ===================================================== */

/* Formula Box - For Mathematical Formulas */
.formula-box {
  background: linear-gradient(135deg, rgba(var(--bs-info-rgb), 0.08), rgba(var(--bs-primary-rgb), 0.08));
  border: 1px solid rgba(var(--bs-info-rgb), 0.2);
  border-left: 4px solid var(--bs-info);
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  text-align: center;
}

.formula-box code {
  background: transparent;
  font-size: 1.15rem;
  color: var(--bs-body-color);
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand h5 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.footer-brand p {
  color: var(--bs-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* File Check List - Assignment Submission */
.file-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.file-check-list li:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  transform: translateX(4px);
}

.file-check-list li i {
  font-size: 1.1rem;
}

/* File Requirements List */
.file-requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
}

.file-requirements-list li:last-child {
  border-bottom: none;
}

.file-requirements-list li i {
  color: var(--bs-primary);
  margin-top: 0.2rem;
}

/* GitHub Username Input Group */
.github-username-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.github-username-input-group input {
  flex: 1;
}

.github-username-input-group .btn {
  white-space: nowrap;
}

/* Verification Status Badge */
.verification-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Success Animation */
.success-animation {
  animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* Alert Submission */
.alert-submission {
  border-radius: 12px;
  padding: 1.25rem;
  border: none;
}

/* Repo Requirements Card */
.repo-requirements-card {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Repo Name Display */
.repo-name-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.8);
  border-radius: 8px;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
}

/* Submission Card */
.submission-card {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.submission-card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Submission Container */
.submission-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Interactive Learning Elements
   ============================================ */

/* Interactive Demo Container */
.interactive-demo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.interactive-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-info), var(--bs-success));
}

.interactive-demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
}

.interactive-demo-header i {
  font-size: 1.25rem;
  color: var(--bs-primary);
}

.interactive-demo-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.interactive-demo-header .badge {
  margin-left: auto;
}

/* Interactive Slider */
.interactive-slider {
  margin: 1.5rem 0;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.slider-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, 
    var(--bs-danger) 0%, 
    var(--bs-warning) 25%, 
    var(--bs-secondary) 50%, 
    var(--bs-info) 75%, 
    var(--bs-success) 100%);
  outline: none;
  transition: opacity 0.2s;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--bs-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.slider-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--bs-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Slider Output Display */
.slider-output {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 12px;
}

.slider-output-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.slider-output-item.active {
  background: rgba(var(--bs-primary-rgb), 0.15);
  transform: scale(1.02);
}

.slider-output-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
}

.slider-output-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* Interactive Tabs */
.interactive-tabs {
  margin: 2rem 0;
}

.tabs-header {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid rgba(var(--bs-border-color-rgb), 0.15);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  font-weight: 500;
  color: var(--bs-secondary-color);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bs-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  color: var(--bs-body-color);
}

.tab-btn.active {
  color: var(--bs-primary);
  font-weight: 600;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interactive Code Runner */
.code-runner {
  background: rgba(var(--bs-dark-rgb), 0.95);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-runner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-runner-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a5a5a5;
  font-size: 0.85rem;
}

.code-runner-actions {
  display: flex;
  gap: 0.5rem;
}

.run-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--bs-success), #059669);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.run-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.run-btn:active {
  transform: translateY(0);
}

.run-btn.running {
  background: var(--bs-warning);
  pointer-events: none;
}

.code-runner-output {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #10b981;
  min-height: 60px;
  max-height: 200px;
  overflow-y: auto;
}

.code-runner-output.error {
  color: #ef4444;
}

.code-runner-output .output-label {
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

/* Interactive Visualization */
.interactive-viz {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.viz-canvas {
  width: 100%;
  height: 300px;
  background: rgba(var(--bs-dark-rgb), 0.05);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.viz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.15);
}

.viz-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.viz-control-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
}

.viz-control-group select,
.viz-control-group input[type="number"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 8px;
  background: rgba(var(--bs-body-bg-rgb), 0.8);
  color: var(--bs-body-color);
  font-size: 0.9rem;
}

/* Collapsible Section */
.collapsible {
  margin: 1rem 0;
}

.collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
  border-radius: 12px;
  color: var(--bs-body-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.collapsible-trigger:hover {
  background: rgba(var(--bs-primary-rgb), 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.25);
}

.collapsible-trigger i {
  transition: transform 0.3s ease;
}

.collapsible-trigger.active i {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.collapsible-content.active {
  max-height: 2000px;
  padding-top: 1rem;
}

/* Try It Yourself Box */
.try-it-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.try-it-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.try-it-header i {
  font-size: 1.5rem;
  color: var(--bs-success);
}

.try-it-header h4 {
  margin: 0;
  color: var(--bs-success);
  font-weight: 600;
}

.try-it-instructions {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.try-it-instructions ol {
  margin: 0;
  padding-left: 1.25rem;
}

.try-it-instructions li {
  margin-bottom: 0.5rem;
}

/* Interactive Comparison Cards */
.comparison-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.comparison-toggle-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 2px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 50px;
  font-weight: 600;
  color: var(--bs-secondary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.comparison-toggle-btn:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.comparison-toggle-btn.active {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

/* Progress Indicator for Multi-step */
.step-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(var(--bs-border-color-rgb), 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-dot:hover {
  background: rgba(var(--bs-primary-rgb), 0.5);
}

.step-dot.active {
  background: var(--bs-primary);
  transform: scale(1.2);
}

.step-dot.completed {
  background: var(--bs-success);
}

/* Interactive Data Type Cards */
.data-type-explorer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.data-type-card {
  background: rgba(var(--bs-body-bg-rgb), 0.5);
  border: 2px solid rgba(var(--bs-border-color-rgb), 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.data-type-card:hover {
  border-color: var(--bs-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.data-type-card.selected {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.1);
}

.data-type-card .type-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.data-type-card .type-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.data-type-card .type-example {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}

.data-type-details {
  background: rgba(var(--bs-primary-rgb), 0.05);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
}

.data-type-details.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Animated Counter */
.animated-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-primary);
}

/* Interactive Memory Visualization */
.memory-viz {
  display: flex;
  gap: 2px;
  padding: 1rem;
  background: rgba(var(--bs-dark-rgb), 0.8);
  border-radius: 8px;
  overflow-x: auto;
}

.memory-cell {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-primary-rgb), 0.2);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--bs-primary);
  transition: all 0.3s ease;
}

.memory-cell:hover {
  background: rgba(var(--bs-primary-rgb), 0.4);
  transform: scale(1.1);
}

.memory-cell.highlighted {
  background: var(--bs-success);
  border-color: var(--bs-success);
  color: white;
}

/* Flip Card */
.flip-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.flip-card-front {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.flip-card-back {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  transform: rotateY(180deg);
}

/* Responsive */
@media (max-width: 768px) {
  .interactive-demo {
    padding: 1rem;
  }
  
  .tabs-header {
    flex-wrap: nowrap;
  }
  
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .slider-output {
    grid-template-columns: 1fr 1fr;
  }
  
  .data-type-explorer {
    grid-template-columns: 1fr 1fr;
  }
}


/* =====================================================
   Styled Feature Cards
   ===================================================== */
.feature-card-styled {
  border: 2px solid rgba(var(--bs-secondary-rgb), 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(var(--bs-body-bg-rgb), 0.8);
  backdrop-filter: blur(10px);
}

.feature-card-styled:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.feature-card-styled .feature-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.feature-card-styled .feature-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
  pointer-events: none;
}

.feature-card-styled .feature-header i {
  font-size: 1.8rem;
  min-width: 45px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card-styled .feature-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.feature-card-styled .feature-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-styled .feature-body p {
  margin: 0;
  color: var(--bs-body-color);
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: center;
}

.feature-card-styled:hover .feature-header {
  filter: brightness(1.1);
}

/* Gradient background utilities for feature headers */
.bg-gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
/* =====================================================
   OOP PILLAR CARDS - Modern 4-Column Grid Design
   ===================================================== */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 1200px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
}

.oop-pillar-card {
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.oop-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pillar-color, #6366f1), var(--pillar-color-alt, #8b5cf6));
  transition: height 0.3s ease;
}

.oop-pillar-card:nth-child(1) { --pillar-color: #6366f1; --pillar-color-alt: #8b5cf6; }
.oop-pillar-card:nth-child(2) { --pillar-color: #10b981; --pillar-color-alt: #34d399; }
.oop-pillar-card:nth-child(3) { --pillar-color: #06b6d4; --pillar-color-alt: #22d3ee; }
.oop-pillar-card:nth-child(4) { --pillar-color: #f59e0b; --pillar-color-alt: #fbbf24; }

.oop-pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(var(--bs-primary-rgb), 0.1);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.oop-pillar-card:hover::before {
  height: 6px;
}

.oop-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin: 1.75rem auto 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.oop-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: inherit;
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
}

.oop-pillar-card:hover .oop-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.oop-pillar-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 1.5rem 1rem;
  color: var(--bs-body-color);
  letter-spacing: 0.3px;
}

.oop-pillar-card > p {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
  line-height: 1.65;
  text-align: center;
  margin: 0 1.5rem 1.25rem;
  flex: 1;
}

/* Code snippet wrapper for OOP cards */
.oop-pillar-card .code-snippet-wrapper {
  margin-top: auto;
  border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.2);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.oop-pillar-card .code-snippet-wrapper pre {
  margin: 0;
  padding: 1rem 1.25rem;
  padding-right: 3.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 0 20px 20px;
  font-size: 0.75rem;
  line-height: 1.6;
  position: relative;
}

.oop-pillar-card .code-snippet-wrapper pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #e2e8f0;
  background: transparent;
  padding: 0;
}

.oop-pillar-card .code-snippet-wrapper .code-copy-btn {
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.5rem;
  min-width: 30px;
  height: 30px;
  font-size: 0.75rem;
  background: rgba(var(--bs-primary-rgb), 0.25);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.4);
}

.oop-pillar-card .code-snippet-wrapper .code-copy-btn i {
  font-size: 0.8rem;
}

/* Light mode adjustments */
[data-bs-theme="light"] .oop-pillar-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .oop-pillar-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(99, 102, 241, 0.15);
}

[data-bs-theme="light"] .oop-pillar-card .code-snippet-wrapper pre {
  background: #1e293b;
}

/* =====================================================
   Interactive Algorithm Complexity Tool Styles
   ===================================================== */
.interactive-tool-container {
  background: linear-gradient(135deg, #5f93c6 0%, #335d87 100%);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid #dee2e6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-header {
  text-align: center;
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 25px;
  font-weight: 500;
}

.algorithm-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.algorithm-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.algorithm-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.algorithm-card.selected {
  border-color: #6366f1;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.algorithm-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.algorithm-complexity {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #28a745;
  font-weight: bold;
}

.algorithm-card.selected .algorithm-complexity {
  color: #90ee90;
}

.algorithm-use-case {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 5px;
}

.comparison-panel {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #dee2e6;
  height: fit-content;
}

.comparison-display {
  min-height: 200px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  text-align: center;
  color: #6c757d;
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.performance-results {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #6366f1;
}

.performance-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.performance-metric:last-child {
  border-bottom: none;
}

.metric-value {
  font-weight: bold;
  color: #6366f1;
}

.complexity-chart {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #dee2e6;
}

.data-size-slider label {
  font-weight: 600;
  color: #495057;
}

.form-range::-webkit-slider-thumb {
  background: #6366f1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.form-range::-moz-range-thumb {
  background: #6366f1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.algorithm-comparison {
  padding: 20px;
  text-align: center;
}

.comparison-header {
  margin-bottom: 15px;
}

.complexity-badge {
  display: inline-block;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.1rem;
}

.comparison-description {
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .algorithm-cards {
    flex-direction: column;
  }
  
  .interactive-tool-container {
    padding: 20px;
  }
}

/* Dark Mode Styles for Algorithm Complexity Tool */
[data-bs-theme="dark"] .interactive-tool-container {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-color: #4a5568;
}

[data-bs-theme="dark"] .tool-header {
  color: #cbd5e0;
}

[data-bs-theme="dark"] .algorithm-card {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .algorithm-card:hover {
  border-color: #6366f1;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

[data-bs-theme="dark"] .algorithm-complexity {
  color: #68d391;
}

[data-bs-theme="dark"] .comparison-panel {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .comparison-display {
  background: #1a202c;
  border-color: #4a5568;
}

[data-bs-theme="dark"] .empty-state {
  color: #cbd5e0;
}

[data-bs-theme="dark"] .performance-results {
  background: #1a202c;
  border-left-color: #6366f1;
}

[data-bs-theme="dark"] .complexity-chart {
  background: #1a202c;
  border-color: #4a5568;
}

[data-bs-theme="dark"] .data-size-slider label {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .comparison-description {
  color: #cbd5e0;
}

[data-bs-theme="dark"] .performance-metric {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .metric-value {
  color: #90cdf4;
}

/* Light Mode Styles for Algorithm Complexity Tool */
[data-bs-theme="light"] .interactive-tool-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #dee2e6;
}

[data-bs-theme="light"] .tool-header {
  color: #ffffff;
}

[data-bs-theme="light"] .algorithm-selector h5 {
  color: #ffffff;
}

[data-bs-theme="light"] .algorithm-card {
  background: #ffffff;
  border-color: #e9ecef;
  color: #212529;
}

[data-bs-theme="light"] .algorithm-name {
  color: #212529;
}

[data-bs-theme="light"] .algorithm-use-case {
  color: #6c757d;
}

[data-bs-theme="light"] .comparison-panel {
  background: #ffffff;
  border-color: #dee2e6;
  color: #212529;
}

[data-bs-theme="light"] .comparison-panel h5 {
  color: #212529;
}

[data-bs-theme="light"] .comparison-display {
  background: #f8f9fa;
  border-color: #dee2e6;
}

[data-bs-theme="light"] .empty-state {
  color: #6c757d;
}

[data-bs-theme="light"] .data-size-slider label {
  color: #212529;
}

[data-bs-theme="light"] .performance-results {
  background: #f8f9fa;
  border-left-color: #6366f1;
  color: #212529;
}

[data-bs-theme="light"] .performance-metric strong {
  color: #212529;
}

[data-bs-theme="light"] .metric-value {
  color: #6366f1;
}
/* =====================================================
   Debugging Page Styles - Workflow Visual
   ===================================================== */
.debug-workflow-visual {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.workflow-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.workflow-icon-wrapper {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.workflow-header h5 {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  flex: 1;
}

.workflow-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.workflow-container {
  padding: 40px 30px;
}

.workflow-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.workflow-step {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  padding: 25px 20px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.workflow-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.wf-step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
  border: 3px solid rgba(15, 23, 42, 1);
}

.wf-step-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  margin-bottom: 10px;
}

.wf-step-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #e2e8f0;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.wf-step-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.wf-step-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #f59e0b;
}

.wf-step-pulse {
  display: none;
}

/* Step color variants */
.wf-step-reproduce .wf-step-number { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.wf-step-reproduce:hover { border-color: rgba(14, 165, 233, 0.5); }

.wf-step-locate .wf-step-number { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.wf-step-locate:hover { border-color: rgba(14, 165, 233, 0.5); }

.wf-step-fix .wf-step-number { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.wf-step-fix:hover { border-color: rgba(14, 165, 233, 0.5); }

.wf-step-verify .wf-step-number { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.wf-step-verify:hover { border-color: rgba(14, 165, 233, 0.5); }

/* Workflow arrows between steps */
.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Workflow cycle indicator */
.workflow-cycle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding-left: 20px;
  color: #64748b;
  font-size: 0.85rem;
}

.workflow-cycle .cycle-arrow {
  color: #64748b;
}

/* Workflow footer */
.workflow-footer {
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Light mode overrides for workflow */
[data-bs-theme="light"] .debug-workflow-visual {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .workflow-header h5 {
  color: #1e293b;
}

[data-bs-theme="light"] .workflow-step {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .wf-step-number {
  border-color: #ffffff;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

[data-bs-theme="light"] .wf-step-icon {
  color: #475569;
}

[data-bs-theme="light"] .wf-step-title {
  color: #1e293b !important;
}

[data-bs-theme="light"] .wf-step-desc {
  color: #475569 !important;
}

[data-bs-theme="light"] .workflow-arrow {
  color: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .workflow-cycle {
  color: #64748b;
}

[data-bs-theme="light"] .workflow-footer {
  background: rgba(0, 0, 0, 0.03);
  color: #475569;
}

/* Responsive workflow */
@media (max-width: 768px) {
  .workflow-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .workflow-step {
    min-width: 250px;
    max-width: 300px;
  }
  
  .workflow-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
}

/* =====================================================
   Debugging Page Styles - Bug Types Grid
   ===================================================== */
.bugs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.bug-card {
  position: relative;
  padding: 25px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.bug-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.bug-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.bug-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.bug-card:hover .bug-icon {
  transform: scale(1.1);
}

.bug-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.bug-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 15px;
}

.bug-approach {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.bug-approach i {
  color: #fbbf24;
  font-size: 0.9rem;
}

.bug-severity {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Syntax Error - Blue */
.bug-syntax { border-color: rgba(59, 130, 246, 0.3); }
.bug-syntax::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bug-syntax .bug-icon { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.bug-syntax .bug-title { color: #60a5fa; }
.bug-syntax .bug-severity { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.bug-syntax:hover { border-color: rgba(59, 130, 246, 0.5); }

/* Runtime Error - Red */
.bug-runtime { border-color: rgba(239, 68, 68, 0.3); }
.bug-runtime::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.bug-runtime .bug-icon { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.bug-runtime .bug-title { color: #f87171; }
.bug-runtime .bug-severity { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.bug-runtime:hover { border-color: rgba(239, 68, 68, 0.5); }

/* Logic Error - Purple */
.bug-logic { border-color: rgba(168, 85, 247, 0.3); }
.bug-logic::before { background: linear-gradient(90deg, #a855f7, #c084fc); }
.bug-logic .bug-icon { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.bug-logic .bug-title { color: #c084fc; }
.bug-logic .bug-severity { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.bug-logic:hover { border-color: rgba(168, 85, 247, 0.5); }

/* Edge Case - Orange */
.bug-edge { border-color: rgba(245, 158, 11, 0.3); }
.bug-edge::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bug-edge .bug-icon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.bug-edge .bug-title { color: #fbbf24; }
.bug-edge .bug-severity { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.bug-edge:hover { border-color: rgba(245, 158, 11, 0.5); }

/* Light mode support for bug cards */
[data-bs-theme="light"] .bug-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

[data-bs-theme="light"] .bug-desc,
[data-bs-theme="light"] .bug-approach {
  color: #475569;
}

[data-bs-theme="light"] .bug-approach {
  background: rgba(0, 0, 0, 0.05);
}

/* =====================================================
   Debugging Page Styles - Comparison Battle
   ===================================================== */
.comparison-battle {
  background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 50%, #0f172a 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.battle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.battle-title {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 1.1rem;
}

.battle-vs {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
  animation: vs-pulse 2s ease infinite;
}

@keyframes vs-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.battle-arena {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 30px;
}

.battle-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.battle-card:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 10;
}

.battle-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.battle-print .battle-card-glow { background: linear-gradient(90deg, #10b981, #34d399); }
.battle-print:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2); }

.battle-pdb .battle-card-glow { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.battle-pdb:hover { border-color: rgba(14, 165, 233, 0.5); box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2); }

.battle-card-header {
  padding: 25px 25px 15px;
  text-align: center;
}

.battle-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 15px;
  transition: transform 0.3s ease;
}

.battle-card:hover .battle-icon {
  transform: scale(1.1) rotate(5deg);
}

.battle-print .battle-icon { background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2)); color: #34d399; }
.battle-pdb .battle-icon { background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(2, 132, 199, 0.2)); color: #38bdf8; }

.battle-card-header h5 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.battle-print .battle-card-header h5 { color: #34d399; }
.battle-pdb .battle-card-header h5 { color: #38bdf8; }

.battle-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.battle-print .battle-tag { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.battle-pdb .battle-tag { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }

.battle-card-body {
  padding: 0 25px 20px;
}

.battle-pros, .battle-cons {
  margin-bottom: 15px;
}

.battle-pros h6, .battle-cons h6 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.battle-pros h6 { color: #10b981; }
.battle-cons h6 { color: #ef4444; }

.battle-pros ul, .battle-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.battle-pros li, .battle-cons li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.battle-pros li:hover, .battle-cons li:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateX(5px);
}

.battle-pros li i { color: #10b981; font-size: 0.9rem; }
.battle-cons li i { color: #ef4444; font-size: 0.9rem; }

.battle-card-footer {
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.use-when {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

/* Light mode for comparison battle */
[data-bs-theme="light"] .comparison-battle {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

[data-bs-theme="light"] .battle-title {
  color: #1e293b !important;
}

[data-bs-theme="light"] .battle-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

[data-bs-theme="light"] .battle-pros li,
[data-bs-theme="light"] .battle-cons li {
  background: rgba(0, 0, 0, 0.05);
  color: #334155 !important;
}

[data-bs-theme="light"] .use-when {
  color: #475569 !important;
}


/* =====================================================
   Debugging Page Styles - PDB Commands Visual
   ===================================================== */
.pdb-commands-visual {
  background: linear-gradient(145deg, #0a0a0f, #111827);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pdb-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.pdb-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #10b981;
  font-size: 1rem;
  background: rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
}

.pdb-title {
  color: #94a3b8;
  font-size: 0.9rem;
  flex: 1;
}

.pdb-cursor {
  width: 12px;
  height: 20px;
  background: #10b981;
  animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.pdb-commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 20px;
}

.pdb-cmd {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.pdb-cmd:hover {
  transform: translateX(5px);
  background: rgba(30, 41, 59, 0.9);
}

.cmd-shortcut {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.cmd-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmd-full {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  background: transparent;
  padding: 0;
}

.cmd-desc {
  font-size: 0.75rem;
  color: #64748b;
}

.cmd-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.pdb-cmd:hover .cmd-icon {
  opacity: 1;
}

/* Navigation commands - Blue */
.cmd-nav .cmd-shortcut { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.cmd-nav .cmd-icon { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.cmd-nav:hover { border-color: rgba(59, 130, 246, 0.3); }

/* Flow control - Green */
.cmd-flow .cmd-shortcut { background: linear-gradient(135deg, #10b981, #059669); }
.cmd-flow .cmd-icon { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.cmd-flow:hover { border-color: rgba(16, 185, 129, 0.3); }

/* Inspection - Purple */
.cmd-inspect .cmd-shortcut { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.cmd-inspect .cmd-icon { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.cmd-inspect:hover { border-color: rgba(139, 92, 246, 0.3); }

/* Control - Red */
.cmd-control .cmd-shortcut { background: linear-gradient(135deg, #ef4444, #dc2626); }
.cmd-control .cmd-icon { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.cmd-control:hover { border-color: rgba(239, 68, 68, 0.3); }

.pdb-footer {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pdb-tip {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

.pdb-tip i {
  color: #fbbf24;
}

.pdb-tip strong {
  color: #94a3b8;
  margin-right: 5px;
}

/* Light mode for PDB commands */
[data-bs-theme="light"] .pdb-commands-visual {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
}

[data-bs-theme="light"] .pdb-cmd {
  background: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="light"] .cmd-full {
  color: #1e293b;
}

[data-bs-theme="light"] .cmd-desc,
[data-bs-theme="light"] .pdb-title {
  color: #475569;
}
