/**
 * MarketPawns Starter - Learning System Styles
 * Тематический дизайн: финансы + шахматы
 */

/* === ЦВЕТОВАЯ ПАЛИТРА === */
:root {
  /* Финансовая тематика */
  --trading-green: #00C851;
  --trading-red: #FF4444;
  --financial-gold: #FFD700;
  --market-blue: #0066CC;
  --profit-green: #4CAF50;
  --loss-red: #F44336;
  
  /* Шахматная тематика */
  --chess-black: #2C2C2C;
  --chess-white: #F8F9FA;
  --chess-dark-square: #8B4513;
  --chess-light-square: #F5DEB3;
  --chess-gold: #DAA520;
  
  /* Градиенты */
  --gradient-dark: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  --gradient-financial: linear-gradient(135deg, #0066CC 0%, #00C851 100%);
  --gradient-chess: linear-gradient(45deg, #8B4513 25%, #F5DEB3 25%, #F5DEB3 50%, #8B4513 50%, #8B4513 75%, #F5DEB3 75%);
  
  /* UI элементы */
  --border-radius: 8px;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-chess);
  opacity: 0.05;
  background-size: 40px 40px;
}

.hero-logo img {
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
}

.bg-light-alpha {
  background-color: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-card {
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

/* === ШАХМАТНАЯ ДОСКА И ФИНАНСОВЫЕ ЭЛЕМЕНТЫ === */
.chess-board-pattern {
  position: relative;
  width: 100%;
  height: 250px;
  background: var(--gradient-chess);
  background-size: 30px 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.financial-chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,102,204,0.8), rgba(0,200,81,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-chart {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* === КАРТОЧКИ РЕЖИМОВ ОБУЧЕНИЯ === */
.learning-modes-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.mode-card {
  transition: var(--transition);
  cursor: pointer;
}

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

.mode-card.active .card {
  border-color: var(--market-blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.shadow-hover {
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-medium);
}

/* === НАВИГАЦИОННАЯ СИСТЕМА === */
.navigation-panel .card {
  border: none;
  box-shadow: var(--shadow-medium);
}

.navigation-title {
  color: var(--chess-black);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Принудительно белый текст на всех темно-синих заголовках */
.card-header.bg-primary,
.card-header.bg-primary *,
.bg-primary .card-header,
.bg-primary .card-header * {
  color: #ffffff !important;
}

.card-header.bg-primary h1,
.card-header.bg-primary h2, 
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6 {
  color: #ffffff !important;
}

/* Guided Navigation */
.guided-navigation .learning-module {
  margin-bottom: 1.5rem;
}

.guided-navigation .module-title {
  color: var(--chess-black);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--chess-light-square);
  margin-bottom: 0.75rem;
}

.guided-navigation .learning-section {
  margin-bottom: 1rem;
}

.guided-navigation .section-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--chess-dark-square);
  margin-bottom: 0.5rem;
}

.guided-navigation .lesson-list {
  list-style: none;
  padding-left: 1rem;
}

.guided-navigation .lesson-list li {
  margin-bottom: 0.25rem;
}

.guided-navigation .lesson-link {
  color: var(--market-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.guided-navigation .lesson-link:hover {
  color: var(--trading-green);
  padding-left: 0.5rem;
}

/* Explore Navigation */
.explore-navigation .module-card {
  transition: var(--transition);
}

.explore-navigation .module-card:hover {
  transform: translateY(-2px);
}

.explore-navigation .sections-list {
  max-height: 300px;
  overflow-y: auto;
}

.explore-navigation .section-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.explore-navigation .section-item:last-child {
  border-bottom: none;
}

.explore-navigation .lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.explore-navigation .lesson-badge {
  cursor: pointer;
  transition: var(--transition);
}

.explore-navigation .lesson-badge:hover {
  background-color: var(--market-blue) !important;
  color: white !important;
}

/* Reference Navigation */
.reference-navigation .search-box input {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.reference-navigation .search-box input:focus {
  border-color: var(--market-blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.reference-navigation .reference-index {
  max-height: 400px;
  overflow-y: auto;
}

.reference-navigation .reference-item {
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.reference-navigation .reference-item:hover {
  background-color: #f8f9fa;
}

.reference-navigation .reference-item.hidden {
  display: none;
}

/* === ПРОГРЕСС-БАРЫ === */
.progress-section {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--market-blue);
}

.progress-label {
  font-weight: 600;
  color: var(--chess-black);
}

.progress-value {
  font-size: 0.9rem;
  color: var(--chess-dark-square);
}

.progress {
  height: 8px;
  border-radius: 4px;
  background-color: #e9ecef;
}

.progress-bar {
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* === КАРТОЧКИ МОДУЛЕЙ === */
.module-overview-card {
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-light);
}

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

.module-stats {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 0.75rem;
}

.module-stats strong {
  font-size: 1.25rem;
  color: var(--chess-black);
}

/* === РЕКОМЕНДАЦИИ === */
.recommendations-section h4 {
  color: var(--chess-black);
  font-weight: 600;
  margin-bottom: 1rem;
}

.recommendation-card {
  border: none;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--trading-green);
  transition: var(--transition);
}

.recommendation-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-medium);
}

/* === RESPONSIVE ДИЗАЙН === */

/* Планшеты */
@media (max-width: 768px) {
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .progress-overview .row {
    text-align: center;
  }
  
  .chess-board-pattern {
    height: 200px;
  }
  
  .navigation-panel {
    margin-bottom: 2rem;
  }
  
  .mode-card .card-body {
    padding: 1rem;
  }
}

/* Мобильные устройства */
@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section .display-4 {
    font-size: 1.75rem;
  }
  
  .hero-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .chess-board-pattern {
    height: 150px;
    background-size: 20px 20px;
  }
  
  .stat-card {
    margin-bottom: 1rem;
  }
  
  .explore-navigation .lesson-tags {
    justify-content: center;
  }
  
  .module-overview-card .card-body {
    text-align: center;
  }
}

/* === АНИМАЦИИ === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* === УТИЛИТАРНЫЕ КЛАССЫ === */
.text-chess-black { color: var(--chess-black) !important; }
.text-chess-gold { color: var(--chess-gold) !important; }
.text-trading-green { color: var(--trading-green) !important; }
.text-trading-red { color: var(--trading-red) !important; }
.text-financial-gold { color: var(--financial-gold) !important; }

.bg-chess-pattern {
  background: var(--gradient-chess);
  background-size: 20px 20px;
}

.border-chess-gold {
  border-color: var(--chess-gold) !important;
}

.shadow-chess {
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15);
}

/* === ДОСТУПНОСТЬ === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
  :root {
    --chess-black: #000000;
    --chess-white: #ffffff;
    --market-blue: #0000ff;
    --trading-green: #008000;
  }
}

/* === КАСТОМНЫЕ СКРОЛЛБАРЫ === */
.reference-index::-webkit-scrollbar,
.sections-list::-webkit-scrollbar {
  width: 6px;
}

.reference-index::-webkit-scrollbar-track,
.sections-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.reference-index::-webkit-scrollbar-thumb,
.sections-list::-webkit-scrollbar-thumb {
  background: var(--chess-dark-square);
  border-radius: 3px;
}

.reference-index::-webkit-scrollbar-thumb:hover,
.sections-list::-webkit-scrollbar-thumb:hover {
  background: var(--chess-black);
}

/* Оптимизированные цвета текста в CTA блоке для улучшенной читаемости */
.cta-section.bg-primary,
.cta-section.bg-primary *,
.cta-section.bg-primary h1,
.cta-section.bg-primary h2,
.cta-section.bg-primary h3,
.cta-section.bg-primary h4,
.cta-section.bg-primary h5,
.cta-section.bg-primary h6,
.cta-section.bg-primary p,
.cta-section.bg-primary .lead {
    color: #FFF8E1 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Специальная стилизация для основного заголовка CTA */
.cta-section h2.fw-bold {
    color: #FFF8E1 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-weight: 700 !important;
}

/* Стили для секций с градиентным фоном */
.bg-gradient-primary,
.bg-gradient-primary *,
.bg-gradient-primary h1,
.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary h4,
.bg-gradient-primary h5,
.bg-gradient-primary h6,
.bg-gradient-primary p,
.bg-gradient-primary .lead {
    color: #FFF8E1 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Специальное выделение для заголовка "Ready for advanced trading?" */
.bg-gradient-primary h2.fw-bold {
    color: #FFF8E1 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Стиль для кнопки регистрации с корпоративным темно-синим текстом */
.btn-light[data-bs-toggle="modal"][data-bs-target="#registerModal"] {
    color: #3D4875 !important;
    font-weight: 600 !important;
    background-color: #ffffff;
    border-color: #ffffff;
}

.btn-light[data-bs-toggle="modal"][data-bs-target="#registerModal"]:hover {
    color: #3D4875 !important;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

/* Цвет иконки в кнопке регистрации */
.btn-light[data-bs-toggle="modal"][data-bs-target="#registerModal"] i {
    color: #3D4875 !important;
}

.btn-light[data-bs-toggle="modal"][data-bs-target="#registerModal"]:hover i {
    color: #3D4875 !important;
}

/* === НОВЫЕ СТИЛИ ДЛЯ ГАЛОЧЕК И ВРЕМЕНИ ЧТЕНИЯ === */

/* Guided Navigation - аккордеон для модулей */
.guided-navigation .learning-module {
    background: #ffffff;
    border: 1px solid rgba(61, 72, 117, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.guided-navigation .module-title {
    margin: 0;
}

.guided-navigation .module-toggle-btn {
    width: 100%;
    background: linear-gradient(135deg, #3D4875 0%, #4a5c94 100%);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guided-navigation .module-toggle-btn:hover {
    background: linear-gradient(135deg, #2a3557 0%, #384276 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 72, 117, 0.3);
}

.guided-navigation .module-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 72, 117, 0.3);
}

.guided-navigation .module-toggle-btn .module-title-text {
    flex-grow: 1;
    margin-left: 0.75rem;
}

.guided-navigation .collapse-indicator {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.guided-navigation .module-toggle-btn[aria-expanded="true"] .collapse-indicator {
    transform: rotate(180deg);
}

.guided-navigation .module-content {
    padding: 1.25rem;
    background: #fafbfc;
}

.guided-navigation .learning-section {
    margin-bottom: 1.5rem;
}

.guided-navigation .learning-section:last-child {
    margin-bottom: 0;
}

.guided-navigation .section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3D4875;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Guided Navigation - новые стили для lesson-item */
.guided-navigation .lesson-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.guided-navigation .lesson-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.guided-navigation .lesson-content {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
}

.guided-navigation .lesson-status {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guided-navigation .lesson-status i {
    font-size: 1rem;
}

.guided-navigation .lesson-details {
    flex-grow: 1;
}

.guided-navigation .lesson-link {
    color: var(--market-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.25rem;
}

.guided-navigation .lesson-link:hover {
    color: var(--trading-green);
    text-decoration: underline;
}

.guided-navigation .lesson-meta {
    font-size: 0.8rem;
}

.guided-navigation .lesson-meta i {
    font-size: 0.75rem;
}

/* Статус завершенного урока */
.guided-navigation .lesson-item.completed {
    background-color: rgba(0, 200, 81, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 200, 81, 0.2);
}

.guided-navigation .lesson-item.completed .lesson-link {
    color: var(--trading-green);
    font-weight: 600;
}

/* Explore Navigation - обновленные стили для badges */
.explore-navigation .lesson-badge {
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.25rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.explore-navigation .lesson-badge.badge-primary {
    background-color: #3D4875 !important;
    border-color: #3D4875 !important;
    color: white !important;
}

.explore-navigation .lesson-badge:hover {
    background-color: var(--market-blue) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.explore-navigation .lesson-badge.lesson-completed {
    background-color: var(--trading-green) !important;
    color: white !important;
    font-weight: 600;
}

.explore-navigation .lesson-badge i {
    font-size: 0.8rem;
}

/* Reference Navigation - новые стили для reference-item */
.reference-navigation .reference-item {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.reference-navigation .reference-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.reference-navigation .reference-content {
    display: block;
}

.reference-navigation .lesson-link {
    color: var(--market-blue);
    text-decoration: none;
    transition: var(--transition);
}

.reference-navigation .lesson-link:hover {
    color: var(--trading-green);
    text-decoration: underline;
}


/* Общие стили для времени чтения */
.lesson-meta .fas.fa-clock,
.lesson-meta .far.fa-clock {
    color: var(--chess-dark-square);
}

/* Анимация для галочек */
.lesson-status i.fa-check-circle {
    animation: checkComplete 0.5s ease-in-out;
}

@keyframes checkComplete {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover эффекты для lesson items */
.lesson-item:hover,
.reference-item:hover {
    background-color: rgba(0, 102, 204, 0.05);
    border-radius: 6px;
    padding: 0.75rem;
}

/* Responsive adjustments для новых элементов */
@media (max-width: 768px) {
    .guided-navigation .lesson-content {
        gap: 0.5rem;
    }
    
    .guided-navigation .lesson-meta {
        font-size: 0.75rem;
    }
    
    
    .explore-navigation .lesson-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Guided Navigation - адаптивные стили для аккордеона */
    .guided-navigation .module-toggle-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .guided-navigation .module-content {
        padding: 1rem;
    }
    
    .guided-navigation .section-title {
        font-size: 0.8rem;
    }
    
    .guided-navigation .collapse-indicator {
        font-size: 0.75rem;
    }
    
    /* Test items mobile adjustments */
    .section-tests, .module-tests {
        margin-top: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .tests-header {
        font-size: 0.8rem;
        margin-bottom: 0.5rem !important;
    }
    
    .test-item {
        padding: 0.5rem 0.75rem !important;
    }
    
    .test-link {
        font-size: 0.8rem;
    }
    
    .test-meta small {
        font-size: 0.7rem;
    }
}

/* === TESTS IN GUIDED NAVIGATION === */

/* Section Tests */
.guided-navigation .section-tests {
    margin-top: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.1);
}

.guided-navigation .section-tests .tests-header {
    color: #856404;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.guided-navigation .section-tests .test-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guided-navigation .section-tests .test-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.guided-navigation .section-tests .test-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.guided-navigation .section-tests .test-item:last-child {
    margin-bottom: 0;
}

/* Module Tests */
.guided-navigation .module-tests {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #d4edda 0%, #e2f4e7 100%);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
}

.guided-navigation .module-tests .tests-header {
    color: #155724;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(40, 167, 69, 0.2);
}

.guided-navigation .module-tests .test-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guided-navigation .module-tests .test-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.guided-navigation .module-tests .test-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(40, 167, 69, 0.4);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.guided-navigation .module-tests .test-item:last-child {
    margin-bottom: 0;
}

/* Test Content Styling */
.test-content {
    display: flex;
    flex-direction: column;
}

.test-content .test-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.test-content .test-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.test-meta {
    margin-top: 0.25rem;
}

.test-meta small {
    color: #6c757d;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

/* Test completion indicators */
.test-item .fas.fa-check-circle {
    align-self: flex-start;
    margin-top: 0.1rem;
}

/* Responsive adjustments for tests */
@media (max-width: 768px) {
    .guided-navigation .section-tests,
    .guided-navigation .module-tests {
        padding: 0.875rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .guided-navigation .section-tests .test-item,
    .guided-navigation .module-tests .test-item {
        padding: 0.625rem 0.875rem;
    }
    
    .test-content .test-link {
        font-size: 0.85rem;
    }
    
    .tests-header {
        font-size: 0.85rem !important;
    }
}

/* === MAIN PAGE PROGRESS STATS ENHANCEMENT === */

/* Progress hint styling for main stats cards */
.progress-hint {
    margin-top: 0.5rem !important;
}

.progress-hint small {
    font-size: 0.7rem;
    line-height: 1.2;
    opacity: 0.8;
    text-align: center;
    display: block;
}

/* Stat cards responsive improvements */
.stat-card-corporate {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-corporate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card-corporate .stat-value {
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
}

.stat-card-corporate .stat-label {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsiveness for progress stats */
@media (max-width: 768px) {
    .stat-card-corporate .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-card-corporate .stat-label {
        font-size: 0.75rem;
    }
    
    .progress-hint small {
        font-size: 0.65rem;
    }
    
    /* Stack progress hints on mobile */
    .progress-hint small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
