/* ============================================
   🎨 POO JAVA - DESIGN SYSTEM ULTRA MODERNO
   Versão: 2.0.0
   Linhas: 5.675+
   ============================================ */

/* ============================================
   📐 CSS RESET E BASE
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 🎨 Core Colors - Design System */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  --secondary-50: #f0fdf4;
  --secondary-100: #dcfce7;
  --secondary-200: #bbf7d0;
  --secondary-300: #86efac;
  --secondary-400: #4ade80;
  --secondary-500: #22c55e;
  --secondary-600: #16a34a;
  --secondary-700: #15803d;
  --secondary-800: #166534;
  --secondary-900: #14532d;

  --accent-50: #fef3c7;
  --accent-100: #fde68a;
  --accent-200: #fcd34d;
  --accent-300: #fbbf24;
  --accent-400: #f59e0b;
  --accent-500: #d97706;
  --accent-600: #b45309;
  --accent-700: #92400e;
  --accent-800: #78350f;
  --accent-900: #451a03;

  /* 🌈 Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* 🎭 Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;

  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --border-focus: var(--primary-500);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* 🔮 Glass Morphism - MAIS OPACO PARA EVITAR BLUR */
  --glass-bg: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  /* 📏 Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* 📐 Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* 🎬 Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* 📱 Layout */
  --header-height: 4.5rem;
  --sidebar-width: 18rem;
  --sidebar-collapsed: 4rem;
  --content-max-width: 75rem;

  /* 🔤 Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* 🎯 Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-modal-backdrop: 1030;
  --z-fixed: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* 🌙 Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-elevated: #1e293b;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;

  --border-primary: #334155;
  --border-secondary: #475569;

  /* MAIS OPACO PARA EVITAR BLUR */
  --glass-bg: rgba(15, 23, 42, 0.98);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* ============================================
   🎨 BASE STYLES
   ============================================ */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background-color var(--transition-base),
    color var(--transition-base);
  overflow-x: hidden;
}

/* ============================================
   ♿ ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--primary-600);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--warning);
  outline-offset: 2px;
}

*:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --border-primary: #000000;
    --border-secondary: #333333;
  }

  [data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #e6e6e6;
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --border-primary: #ffffff;
  }

  /* Garantir contraste mínimo 7:1 */
  .btn-primary {
    background: #0066cc;
    color: #ffffff;
  }

  a {
    text-decoration: underline;
  }

  /* Aumentar espessura de bordas */
  .card,
  .module-card,
  .btn {
    border-width: 2px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   🎬 LOADING SCREEN
   ============================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-800) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 0.5s ease-out 1.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  font-size: 5rem;
  animation: bounce 1s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin: var(--space-6) auto;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: var(--text-lg);
  font-weight: 500;
  opacity: 0.9;
}

/* ============================================
   📱 HEADER ULTRA MODERNO
   ============================================ */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  gap: var(--space-6);
  max-width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  height: 16px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger-icon:hover span:nth-child(1) {
  transform: translateY(-2px);
}

.hamburger-icon:hover span:nth-child(3) {
  transform: translateY(2px);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: var(--text-lg);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text small {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 400;
}

/* 🔍 Search Container */
.header-center {
  flex: 1;
  max-width: 600px;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-12);
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-lg);
  pointer-events: none;
}

/* 🎯 Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  /* Evitar blur ao clicar */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.icon-btn:hover {
  background: var(--primary-500);
  color: white;
  transform: translateY(-2px) translateZ(0);
  -webkit-transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-lg);
}

.icon-btn:active {
  transform: translateY(0) translateZ(0) scale(0.95);
  -webkit-transform: translateY(0) translateZ(0) scale(0.95);
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* 📊 Progress Indicator */
.progress-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.progress-indicator:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.progress-circle {
  width: 2rem;
  height: 2rem;
  position: relative;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.progress-bg {
  fill: none;
  stroke: var(--border-primary);
  stroke-width: 2.5;
  opacity: 0.3;
}

.progress-bar {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease-in-out;
  filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.5));
}

.progress-text {
  display: none;
}

.progress-label {
  font-size: var(--text-xs);
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-label #progress-percentage {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--primary-600);
  margin-right: var(--space-1);
}

/* 🔖 Bookmark Counter */
.bookmark-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--error);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 👤 User Avatar */
.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border: 2px solid var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.user-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3),
    0 0 0 4px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-300);
}

/* 🍞 Breadcrumbs */
.breadcrumbs {
  padding: var(--space-3) var(--space-6);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  color: var(--text-tertiary);
  font-size: var(--text-lg);
}

.breadcrumb-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
  color: var(--primary-600);
}

.breadcrumb-list li:last-child a {
  color: var(--text-primary);
  font-weight: 600;
}

/* Breadcrumb Dropdown */
.breadcrumb-dropdown {
  position: relative;
  display: inline-block;
}

.breadcrumb-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.breadcrumb-dropdown-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--primary-600);
}

.breadcrumb-dropdown-toggle .dropdown-icon {
  font-size: 0.7em;
  transition: transform var(--transition-fast);
}

.breadcrumb-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

.breadcrumb-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-dropdown);
  display: none;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  list-style: none;
}

.breadcrumb-dropdown.active .breadcrumb-dropdown-menu {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.breadcrumb-dropdown-menu li {
  margin: 0;
}

.breadcrumb-dropdown-menu li::after {
  display: none;
}

.breadcrumb-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
}

.breadcrumb-dropdown-menu a:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  transform: translateX(4px);
}

[data-theme="dark"] .breadcrumb-dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.1);
}

.breadcrumb-dropdown-menu a.active {
  background: var(--primary-100);
  color: var(--primary-700);
  font-weight: 600;
}

[data-theme="dark"] .breadcrumb-dropdown-menu a.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-400);
}

/* ============================================
   📱 SIDEBAR MODERNA
   ============================================ */

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--glass-bg);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow: hidden;
  pointer-events: auto;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border-primary);
}

.sidebar-header h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

/* 📊 Sidebar Progress Stats */
.sidebar-progress {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

/* Barra de progresso na sidebar */
.progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.progress-bar-track {
  height: 0.5rem;
  background: var(--border-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--success));
  border-radius: var(--radius-full);
  transition: width 0.6s ease-in-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-percentage {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 700;
  text-align: center;
}

/* 🧭 Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  min-height: 400px;
  max-height: calc(100vh - 300px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding: var(--space-4) var(--space-3);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  pointer-events: auto;
  touch-action: pan-y;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.module-item {
  margin-bottom: var(--space-2);
}

.module-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  /* Otimizações de renderização - CORRIGIDO PARA EVITAR BLUR */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

.module-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-500);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.module-link:hover {
  background: var(--bg-primary);
  border-color: var(--primary-500);
  transform: translateX(4px) translateZ(0);
  -webkit-transform: translateX(4px) translateZ(0);
}

.module-link:hover::before {
  transform: scaleY(1);
}

/* Estado ao clicar - SEM BLUR */
.module-link:active {
  transform: translateX(2px) translateZ(0) scale(0.98);
  -webkit-transform: translateX(2px) translateZ(0) scale(0.98);
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  background: var(--primary-100);
  border-color: var(--primary-600);
}

[data-theme="dark"] .module-link:active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-400);
}

/* Remover outline padrão mas manter acessibilidade */
.module-link:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.module-link:focus:not(:focus-visible) {
  outline: none;
}

.module-link.active {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

[data-theme="dark"] .module-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-400);
}

.module-link.active::before {
  transform: scaleY(1);
}

.module-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.module-info {
  flex: 1;
  min-width: 0;
}

.module-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.module-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.module-status.completed {
  background: var(--success);
  color: white;
}

.module-status.in-progress {
  background: var(--warning);
  color: white;
}

.module-status.locked {
  background: var(--border-secondary);
  color: var(--text-tertiary);
}

/* 🔻 Sidebar Footer */
.sidebar-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-primary);
}

/* ============================================
   🔖 BOOKMARKS PANEL
   ============================================ */

.bookmarks-panel {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: 320px;
  background: var(--glass-bg);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.bookmarks-panel.active {
  transform: translateX(0);
}

.bookmarks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border-primary);
}

.bookmarks-header h2 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.bookmarks-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.bookmark-item {
  padding: var(--space-3);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-base);
  /* Evitar blur ao clicar */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.bookmark-item:hover {
  background: var(--bg-primary);
  border-color: var(--primary-500);
  transform: translateY(-2px) translateZ(0);
  -webkit-transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-md);
}

.bookmark-item:active {
  transform: translateY(0) translateZ(0) scale(0.98);
  -webkit-transform: translateY(0) translateZ(0) scale(0.98);
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.bookmark-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.bookmark-module {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ============================================
   📄 MAIN CONTENT
   ============================================ */

.main-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-8);
  transition: margin-left var(--transition-base);
}

.content-area {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ============================================
   🎨 TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--text-secondary);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--primary-600);
}

/* ============================================
   💻 CODE BLOCKS - IDE STYLE (VSCode Theme)
   ============================================ */

pre {
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  padding: 0;
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
}

/* Header da IDE - estilo VSCode */
pre::before {
  content: 'Java';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #2d2d30;
  padding: 10px 16px;
  color: #cccccc;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #3c3c3c;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* Container de números de linha */
.line-numbers {
  display: flex;
  flex-direction: column;
  padding: 52px 0 20px 0; /* Espaço para o header "Java" */
  background: #1e1e1e;
  border-right: 1px solid #3c3c3c;
  min-width: 50px;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
}

/* Proteção contra duplicação: esconder line-numbers adicionais */
.line-numbers ~ .line-numbers {
  display: none !important;
}

/* Esconder números de linha antigos (inline) criados por método deprecated */
span.line-number {
  display: none !important;
}

.line-numbers span {
  display: block;
  padding-right: 15px;
  color: #858585;
  font-size: 13px;
  line-height: 1.8;
  height: calc(1.8 * 14px); /* Altura da linha = line-height * font-size */
}

pre code {
  display: block;
  padding: 52px 20px 20px 20px; /* Espaço para o header "Java" */
  background: #1e1e1e;
  color: #d4d4d4;
  overflow-x: visible;
  tab-size: 4;
  white-space: pre;
  flex: 1;
  min-width: 0; /* Permite flexbox encolher */
}

/* Syntax Highlighting - VSCode Dark Theme */
pre code .keyword {
  color: #569cd6; /* Azul VSCode para keywords */
  font-weight: 500;
}

pre code .class-name {
  color: #4ec9b0; /* Verde-água para classes */
  font-weight: 600;
}

pre code .function {
  color: #dcdcaa; /* Amarelo claro para funções */
}

pre code .string {
  color: #ce9178; /* Laranja para strings */
}

pre code .comment {
  color: #6a9955; /* Verde para comentários normais */
  font-style: italic;
}

pre code .number {
  color: #b5cea8; /* Verde claro para números */
}

pre code .operator {
  color: #d4d4d4; /* Branco para operadores */
}

pre code .punctuation {
  color: #d4d4d4; /* Branco para pontuação */
}

pre code .annotation {
  color: #4ec9b0; /* Verde-água para annotations */
}

/* Modo claro - tema claro do VSCode */
body:not(.dark) pre {
  background: #ffffff;
  border-color: #e5e5e5;
}

body:not(.dark) pre::before {
  background: #f3f3f3;
  color: #424242;
  border-bottom-color: #e5e5e5;
}

body:not(.dark) pre code {
  background: #ffffff;
  color: #000000;
}

body:not(.dark) pre code .keyword {
  color: #0000ff;
}

body:not(.dark) pre code .class-name {
  color: #267f99;
}

body:not(.dark) pre code .function {
  color: #795e26;
}

body:not(.dark) pre code .string {
  color: #a31515;
}

body:not(.dark) pre code .comment {
  color: #008000;
}

body:not(.dark) pre code .number {
  color: #098658;
}

/* Scrollbar customizada para código */
pre code::-webkit-scrollbar {
  height: 10px;
}

pre code::-webkit-scrollbar-track {
  background: #1e1e1e;
}

pre code::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 5px;
}

pre code::-webkit-scrollbar-thumb:hover {
  background: #4e4e4e;
}

body:not(.dark) pre code::-webkit-scrollbar-track {
  background: #f3f3f3;
}

body:not(.dark) pre code::-webkit-scrollbar-thumb {
  background: #c1c1c1;
}

/* Melhorias adicionais para código */
pre code .line:empty {
  min-height: 1.8em; /* Garantir que linhas vazias tenham altura */
}

pre code .line:hover {
  background: rgba(255, 255, 255, 0.05);
}

body:not(.dark) pre code .line:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Espaçamento entre blocos de código */
.content pre + pre {
  margin-top: var(--space-6);
}

/* Indicador de linguagem no topo */
pre[data-language]::before {
  content: attr(data-language);
}

/* Copy button para código (opcional, futuro) */
pre:hover .copy-button {
  opacity: 1;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cccccc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   🎴 CARDS E COMPONENTES
   ============================================ */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-primary);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  color: var(--text-secondary);
}

/* ============================================
   🔘 BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  /* Evitar blur ao clicar - CORREÇÃO APLICADA */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) translateZ(0);
  transition: width 0.6s, height 0.6s;
}

.btn:active {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: scale(0.97) translateZ(0);
  -webkit-transform: scale(0.97) translateZ(0);
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px) translateZ(0);
  -webkit-transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   🎯 QUIZ STYLES
   ============================================ */

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.quiz-progress {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.question-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.question-number {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .question-number {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-400);
}

.question-text {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.options-list {
  list-style: none;
}

.option-item {
  margin-bottom: var(--space-3);
}

.option-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.option-label:hover {
  background: var(--bg-primary);
  border-color: var(--primary-500);
  transform: translateX(4px);
}

.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-secondary);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.option-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--primary-500);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-base);
}

.option-item input:checked + .option-label .option-radio::after {
  transform: translate(-50%, -50%) scale(1);
}

.option-item input:checked + .option-label {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

[data-theme="dark"] .option-item input:checked + .option-label {
  background: rgba(99, 102, 241, 0.1);
}

.option-text {
  flex: 1;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.option-label.correct {
  background: var(--secondary-50);
  border-color: var(--success);
}

[data-theme="dark"] .option-label.correct {
  background: rgba(34, 197, 94, 0.1);
}

.option-label.incorrect {
  background: rgba(239, 68, 68, 0.05);
  border-color: var(--error);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.quiz-result {
  text-align: center;
  padding: var(--space-8);
}

.result-icon {
  font-size: 5rem;
  margin-bottom: var(--space-4);
}

.result-score {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.result-message {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* ============================================
   🎭 OVERLAY & MODAL
   ============================================ */

.overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  pointer-events: none;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-elevated);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-primary);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
}

.modal-body {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-6);
  border-top: 1px solid var(--border-primary);
}

/* ============================================
   🍞 TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  pointer-events: all;
  animation: slideInRight 0.3s ease-out;
}

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

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--info);
}

.toast-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ============================================
   ⌨️ SHORTCUTS HELP
   ============================================ */

.shortcuts-help {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-tooltip);
  max-width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.shortcuts-help.active {
  opacity: 1;
  visibility: visible;
}

.shortcuts-help h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.shortcuts-help dl {
  font-size: var(--text-sm);
}

.shortcuts-help dt {
  font-weight: 600;
  margin-top: var(--space-2);
}

.shortcuts-help dd {
  color: var(--text-secondary);
  margin-left: 0;
  margin-bottom: var(--space-2);
}

.shortcuts-help kbd {
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */

/* ============================================
   🎬 SKELETON LOADERS
   ============================================ */

.skeleton-loader {
  padding: var(--space-8);
  animation: fadeIn 0.2s ease-out;
}

.skeleton-header,
.skeleton-text,
.skeleton-button,
.skeleton-image {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.5s infinite;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.skeleton-header {
  height: 60px;
  width: 70%;
  border-radius: var(--radius-xl);
}

.skeleton-text {
  height: 20px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-button {
  height: 44px;
  width: 150px;
  border-radius: var(--radius-lg);
}

.skeleton-image {
  height: 200px;
  width: 100%;
  border-radius: var(--radius-xl);
}

@keyframes shimmerSkeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Content fade in animation */
.content-area {
  position: relative;
}

.content-area > *:not(.skeleton-loader) {
  animation: contentFadeIn 0.3s ease-out;
}

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

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-width);
  }

  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 4rem;
    --sidebar-width: 280px;
  }

  .header-content {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .logo-text small {
    display: none;
  }

  .progress-label {
    display: none;
  }

  .main-content {
    padding: var(--space-4);
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
  }

  .toast {
    min-width: auto;
    max-width: none;
  }

  /* ============================================
     📱 MOBILE IMPROVEMENTS - TOUCH TARGETS
     ============================================ */

  /* Sidebar full-screen no mobile */
  .sidebar {
    width: 100vw;
    top: 0;
    height: 100vh;
    border-radius: 0;
  }

  /* Botões maiores no mobile (mínimo 44px para iOS) */
  .btn,
  .icon-btn,
  .module-link,
  .option-label {
    min-height: 44px;
    min-width: 44px;
  }

  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
  }

  /* Quiz options maiores e mais espaçadas */
  .option-label {
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
  }

  /* Module cards com touch targets adequados */
  .module-card {
    padding: var(--space-5);
    min-height: 120px;
  }

  /* Navegação sticky no mobile */
  .section-navigation,
  .quiz-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: var(--space-4);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-top: 1px solid var(--border-primary);
  }

  /* Aumentar área de toque nos links da sidebar */
  .module-link {
    padding: var(--space-4) var(--space-3);
    font-size: var(--text-base);
  }

  /* Search input maior */
  .search-input {
    min-height: 44px;
    font-size: var(--text-base);
  }

  /* Reduzir animações no mobile para performance */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@media (max-width: 480px) {
  .search-container {
    display: none;
  }

  .breadcrumbs {
    padding: var(--space-2) var(--space-4);
  }

  .breadcrumb-list {
    font-size: var(--text-xs);
  }

  .card {
    padding: var(--space-4);
  }

  .question-card {
    padding: var(--space-4);
  }
}

/* ============================================
   🎬 ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fade-in {
  animation: fadeIn var(--transition-base);
}

.slide-down {
  animation: slideDown var(--transition-base);
}

.slide-up {
  animation: slideUp var(--transition-base);
}

/* ============================================
   🏠 HOME PAGE STYLES
   ============================================ */

.home-container {
  max-width: 1200px;
  margin: 0 auto;
}

.home-header {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-8);
}

.home-header h1 {
  color: white;
  margin-bottom: var(--space-3);
}

.home-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
}

.progress-overview {
  margin-bottom: var(--space-8);
}

.progress-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.module-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  cursor: pointer;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.module-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.module-card.completed {
  border-color: var(--success);
}

.module-card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.module-card-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.module-card-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.module-card-meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.module-card-score {
  padding: var(--space-2) var(--space-3);
  background: var(--success);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.module-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.status-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-badge.completed {
  background: var(--secondary-100);
  color: var(--success);
}

.status-badge.available {
  background: var(--primary-100);
  color: var(--primary-700);
}

.status-badge.locked {
  background: var(--border-secondary);
  color: var(--text-tertiary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.feature-card {
  text-align: center;
  padding: var(--space-6);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

/* ============================================
   🏆 ACHIEVEMENTS STYLES
   ============================================ */

.achievement-toast {
  min-width: 350px;
  padding: var(--space-5);
  border-left-width: 6px;
}

.achievement-toast .toast-icon {
  font-size: 2.5rem;
}

.achievement-toast .toast-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.achievements-container {
  padding: var(--space-6);
}

.achievements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border-primary);
}

.achievements-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-600);
}

.achievements-category {
  margin-bottom: var(--space-8);
}

.achievements-category h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.achievement-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.achievement-card.earned {
  border-color: var(--success);
  background: var(--secondary-50);
}

[data-theme="dark"] .achievement-card.earned {
  background: rgba(34, 197, 94, 0.1);
}

.achievement-card.locked {
  opacity: 0.6;
}

.achievement-card.earned:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.achievement-card[data-rarity="rare"] {
  border-color: #3b82f6;
}

.achievement-card[data-rarity="epic"] {
  border-color: #8b5cf6;
}

.achievement-card[data-rarity="legendary"] {
  border-color: #f59e0b;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(251, 191, 36, 0.05)
  );
}

.achievement-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.achievement-content {
  flex: 1;
}

.achievement-content h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.achievement-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.achievement-earned {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--success);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.achievement-locked {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ============================================
   📖 MODULE CONTENT STYLES
   ============================================ */

.module-content {
  max-width: 900px;
  margin: 0 auto;
}

.module-header {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  margin-bottom: var(--space-8);
  background: var(--bg-elevated);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-primary);
}

.module-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.module-icon {
  font-size: 3rem;
}

.module-difficulty {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.module-difficulty.beginner {
  background: var(--secondary-100);
  color: var(--success);
}

.module-difficulty.intermediate {
  background: var(--accent-100);
  color: var(--warning);
}

.module-difficulty.advanced {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.module-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.module-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.section-nav {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
}

.section-nav h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.section-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: left;
  width: 100%;
}

.section-nav-item:hover {
  background: var(--bg-primary);
  border-color: var(--primary-500);
  transform: translateX(4px);
}

.section-nav-item.active {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

[data-theme="dark"] .section-nav-item.active {
  background: rgba(99, 102, 241, 0.1);
}

.section-nav-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-500);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.section-nav-title {
  flex: 1;
  font-weight: 500;
}

.section-nav-check {
  color: var(--success);
  font-size: var(--text-xl);
}

.section-content {
  padding: var(--space-8);
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.section-body {
  line-height: 1.8;
}

.section-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.module-progress-info {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.completion-badge {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--success);
  color: white;
  border-radius: var(--radius-full);
  text-align: center;
  font-weight: 600;
}

/* ============================================
   🔍 SEARCH RESULTS
   ============================================ */

.search-results-list {
  list-style: none;
  margin-top: var(--space-4);
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: var(--space-3);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: all var(--transition-base);
}

.search-result-item:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

[data-theme="dark"] .search-result-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

.result-title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.result-match {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   🖨️ PRINT STYLES
   ============================================ */

@media print {
  .app-header,
  .sidebar,
  .bookmarks-panel,
  .overlay,
  .toast-container,
  .shortcuts-help {
    display: none !important;
  }

  .main-content {
    margin: 0;
    padding: 0;
  }

  .card {
    break-inside: avoid;
  }
}

/* ============================================
   ♿ REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   💬 COMENTÁRIOS TÉCNICOS COLORIDOS
   Projeto Final - Didática Melhorada v2.1.0
   Integrados com estilo IDE
   ============================================ */

/* Base para comentários dentro de código */
pre code .comment-why,
pre code .comment-how,
pre code .comment-best,
pre code .comment-tip {
  display: block;
  padding: 12px 16px;
  margin: 8px 0 8px 60px; /* Alinha com o código, após números de linha */
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  font-style: normal;
  position: relative;
  border-left: 4px solid;
}

/* Comentários fora de código (textos explicativos) */
.comment-why,
.comment-how,
.comment-best,
.comment-tip {
  display: block;
  padding: 16px 20px;
  margin: 12px 0;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
  border-left: 5px solid;
  font-style: normal;
}

/* Comentários "POR QUÊ" - Azul */
.comment-why,
pre code .comment-why {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
  border-left-color: #3b82f6;
  color: #1e40af;
}

body.dark .comment-why,
body.dark pre code .comment-why {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
  color: #93c5fd;
}

/* Dentro de pre code escuro */
pre code .comment-why {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* Comentários "COMO" - Verde */
.comment-how,
pre code .comment-how {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
  border-left-color: #22c55e;
  color: #15803d;
}

body.dark .comment-how,
body.dark pre code .comment-how {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
  color: #86efac;
}

pre code .comment-how {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

/* Comentários "BOA PRÁTICA" - Amarelo/Dourado */
.comment-best,
pre code .comment-best {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(202, 138, 4, 0.1));
  border-left-color: #eab308;
  color: #b45309;
}

body.dark .comment-best,
body.dark pre code .comment-best {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.15));
pre code .comment-best {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

/* Comentários "DICA" - Laranja */
.comment-tip,
pre code .comment-tip {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.1));
  border-left-color: #f97316;
  color: #c2410c;
}

body.dark .comment-tip,
body.dark pre code .comment-tip {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.15));
  color: #fdba74;
}

pre code .comment-tip {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

/* Hover nos comentários fora de código */
.comment-why:hover,
.comment-how:hover,
.comment-best:hover,
.comment-tip:hover {
  transform: translateX(6px);
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Hover nos comentários dentro de código */
pre code .comment-why:hover,
pre code .comment-how:hover,
pre code .comment-best:hover,
pre code .comment-tip:hover {
  transform: translateX(4px);
  transition: all 0.3s ease;
}

/* ============================================
   📥 BOTÃO DE DOWNLOAD DO PROJETO
   ============================================ */

.download-section {
  margin: var(--space-8) 0;
  padding: var(--space-8);
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.08),
    rgba(5, 150, 105, 0.08)
  );
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
  transition: all 0.3s ease;
}

.download-section:hover {
  box-shadow: 0 15px 50px rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

.download-section h3 {
  font-size: var(--text-2xl);
  color: #059669;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-weight: 700;
}

.download-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 60px;
  text-transform: none;
  letter-spacing: 0.3px;
  font-weight: 600;
  animation: pulse-appear 2s ease-in-out infinite;
}

@keyframes pulse-appear {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.6);
  }
}

.download-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #059669, #047857);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
  animation: none; /* Para a animação de pulse ao fazer hover */
}

.download-button:hover::before {
  opacity: 1;
}

.download-button:hover .download-icon {
  animation: bounce-download 0.6s ease-in-out infinite;
}

.download-button:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Efeito ripple ao clicar */
.download-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.download-button:active::after {
  width: 300px;
  height: 300px;
}

.download-icon {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes bounce-download {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.download-button span {
  position: relative;
  z-index: 1;
}

.download-info {
  margin-top: var(--space-5);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: rgba(16, 185, 129, 0.05);
  border-radius: var(--radius-lg);
  display: inline-block;
  font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .download-button {
    width: 100%;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-6);
    min-height: 56px;
  }

  .download-section {
    padding: var(--space-6);
  }
  
  .download-info {
    font-size: 12px;
  }
}

/* Dark mode adjustments */
body.dark .download-section {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.12),
    rgba(5, 150, 105, 0.12)
  );
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.25);
}

body.dark .download-section:hover {
  box-shadow: 0 15px 50px rgba(16, 185, 129, 0.35);
}

body.dark .download-section h3 {
  color: #10b981;
}

body.dark .download-info {
  background: rgba(16, 185, 129, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   📋 CHECKLIST DE BOAS PRÁTICAS
   ============================================ */

.best-practices-list {
  list-style: none;
  counter-reset: practice-counter;
  padding: 0;
  margin: var(--space-6) 0;
}

.best-practices-list li {
  counter-increment: practice-counter;
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-16);
  margin-bottom: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.best-practices-list li::before {
  content: counter(practice-counter);
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.best-practices-list li:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-400);
}

.best-practices-list li strong {
  color: var(--primary-600);
  font-weight: 700;
}

.best-practices-list li code {
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

body.dark .best-practices-list li {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .best-practices-list li strong {
  color: var(--primary-400);
}

body.dark .best-practices-list li code {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-300);
}

/* Info Box para instruções */
.info-box {
  padding: var(--space-4);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(16, 185, 129, 0.05)
  );
  border-left: 4px solid var(--secondary-500);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

body.dark .info-box {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(16, 185, 129, 0.1)
  );
}
