 /* LLM Help Modal */
      .llm-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease;
      }

      @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
      }

      .llm-modal-content {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        padding: 30px;
        border-radius: 16px;
        width: 90%;
        max-width: 700px;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        animation: slideUp 0.3s ease;
      }

      @keyframes slideUp {
        from { 
          transform: translateY(50px);
          opacity: 0;
        }
        to { 
          transform: translateY(0);
          opacity: 1;
        }
      }

      .llm-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
      }

      .llm-modal-header h2 {
        color: #fff;
        margin: 0;
        font-size: 24px;
      }

      .llm-close-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 28px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .llm-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
      }

      .llm-prompt-section {
        margin-bottom: 20px;
      }

      .llm-prompt-section label {
        display: block;
        color: #fff;
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 16px;
      }

      #user-llm-prompt {
        width: 100%;
        min-height: 120px;
        padding: 15px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        font-size: 15px;
        font-family: inherit;
        resize: vertical;
        background: rgba(255, 255, 255, 0.95);
        transition: all 0.3s ease;
      }

      #user-llm-prompt:focus {
        outline: none;
        border-color: #4CAF50;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
      }

      .quick-prompts-section {
        margin-bottom: 25px;
      }

      .quick-prompts-section h3 {
        color: #fff;
        font-size: 16px;
        margin-bottom: 12px;
        font-weight: 600;
      }

      .quick-prompts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
      }

      .quick-prompt-btn {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 12px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        text-align: left;
        transition: all 0.3s ease;
        font-weight: 500;
      }

      .quick-prompt-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: #4CAF50;
        transform: translateY(-2px);
      }

      .llm-choice-section {
        margin-bottom: 20px;
      }

      .llm-choice-section h3 {
        color: #fff;
        font-size: 16px;
        margin-bottom: 12px;
        font-weight: 600;
      }

      .llm-buttons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }

      .llm-choice-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 16px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .llm-choice-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
      }

/* ===== DROPDOWN NAVIGATION MENU ===== */
.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 8px;
}

.nav-dropdown-btn {
  background: transparent;
  color: #667eea;
  font-size: 15px;
  border: none;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 140px;
}

.nav-dropdown-btn:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

.nav-dropdown-btn::after {
  content: '▼';
  font-size: 10px;
  margin-left: 5px;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background-color: #2c3e50;
  min-width: 240px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
  border-radius: 8px;
  z-index: 1000;
  top: 100%;
  left: 0;
  margin-top: 8px;
  padding: 8px 0;
}

.nav-dropdown-content a {
  color: #FFD700;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
  border-radius: 4px;
  margin: 0 8px;
}

.nav-dropdown-content a:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

.nav-dropdown.active .nav-dropdown-content {
  display: block;
}

.nav-dropdown.active .nav-dropdown-btn::after {
  content: '▲';
}

.llm-tip {
  background: rgba(76, 175, 80, 0.2);
  border-left: 4px solid #4CAF50;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-top: 20px;
}

/* ===== ENHANCED DASHBOARD STYLES ===== */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px;
  padding-top: 5px;
}

/* Welcome Banner */
.enhanced-welcome-banner {
 background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 15px 25px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: white;
}

.enhanced-welcome-banner h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.enhanced-welcome-banner p {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.95;
  margin: 0;
}

/* Stats Grid */
.stats-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.enhanced-stat-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enhanced-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.enhanced-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon-box {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-label-text {
  color: #666;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
}

.stat-value-number {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 3px;
}

.stat-change-indicator {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

.stat-change-indicator.negative {
  color: #ef4444;
}

/* Section Titles */
.dashboard-section-title {
  color: #333;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subject Cards Grid */
.subjects-practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.enhanced-subject-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.enhanced-subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.subject-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.subject-icon-wrapper {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.subject-icon-wrapper.physics {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.subject-icon-wrapper.chemistry {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.subject-icon-wrapper.biology {
  background: linear-gradient(135deg, #10b981, #059669);
}

.subject-card-info h3 {
  color: #333;
  font-size: 18px;
  margin-bottom: 3px;
}

.subject-card-info p {
  color: #666;
  font-size: 12px;
}

.progress-display-section {
  margin-bottom: 12px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
  color: #666;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.difficulty-tags-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.difficulty-badge {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.difficulty-badge.easy {
  background: #dcfce7;
  color: #059669;
}

.difficulty-badge.medium {
  background: #fef3c7;
  color: #d97706;
}

.difficulty-badge.hard {
  background: #fee2e2;
  color: #dc2626;
}

.subject-start-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subject-start-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Accordion Sections */
.enhanced-accordion-section {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.accordion-header-bar {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.accordion-header-bar:hover {
  background: linear-gradient(135deg, #5568d3, #6a3f8f);
}

.accordion-toggle-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.accordion-toggle-icon.open {
  transform: rotate(180deg);
}

.accordion-content-area {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-content-area.open {
  max-height: 2000px;
}

.accordion-body-content {
  padding: 15px;
}

/* Recommendation Cards */
.recommendation-item-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 3px solid #f59e0b;
  transition: transform 0.3s ease;
}

.recommendation-item-card:hover {
  transform: translateX(5px);
}

.recommendation-header {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.recommendation-description {
  color: #78350f;
  font-size: 12px;
  margin-bottom: 8px;
}

.recommendation-action-btn {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.recommendation-action-btn:hover {
  background: #d97706;
  transform: scale(1.05);
}

/* Activity Items */
.activity-list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f9fafb;
  transition: all 0.3s ease;
}

.activity-list-item:hover {
  background: #f3f4f6;
  transform: translateX(3px);
}

.activity-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.activity-icon-box.physics-activity {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.activity-icon-box.chemistry-activity {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.activity-icon-box.biology-activity {
  background: linear-gradient(135deg, #10b981, #059669);
}

.activity-details-box {
  flex: 1;
}

.activity-title-text {
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  font-size: 14px;
}

.activity-meta-info {
  font-size: 11px;
  color: #666;
}

.activity-score-display {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
  align-self: center;
}

/* Achievement Badges */
.badges-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 10px;
}

.badge-display-item {
  text-align: center;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.badge-display-item:hover {
  transform: scale(1.05);
  background: #f3f4f6;
}

.badge-display-icon {
  font-size: 32px;
  margin-bottom: 5px;
}

.badge-display-name {
  font-size: 11px;
  color: #666;
  font-weight: 600;
}

.badge-display-item.locked {
  opacity: 0.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-dashboard-grid,
  .subjects-practice-grid {
    grid-template-columns: 1fr;
  }

  .enhanced-welcome-banner h1 {
    font-size: 24px;
  }

  .dashboard-section-title {
    font-size: 20px;
  }

  .llm-buttons-grid {
    grid-template-columns: 1fr;
  }

  .quick-prompts-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide original welcome message when enhanced dashboard is shown */
.container.has-enhanced-dashboard .welcome-message {
  display: none;
}

.upgrade-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: gold;
  margin-left: 15px;
  margin-right: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  
  /* Firefox-specific fixes */
  -moz-appearance: none;        /* Remove Firefox default styling */
  appearance: none;              /* Remove default styling */
  box-sizing: border-box;        /* Ensure consistent sizing */
  line-height: 1.2;              /* Control text vertical alignment */
  display: inline-flex;          /* Better alignment control */
  align-items: center;           /* Center text vertically */
  justify-content: center;       /* Center text horizontally */
  white-space: nowrap;           /* Prevent text wrapping */
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upgrade-btn:active {
  transform: translateY(0);
}
.trial-btn {
  background: gold;
  color: blue;
  border: none;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.trial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.trial-btn:active {
  transform: translateY(0);
}
/* Moving Banner Styles */
.promo-banner {
  background: white;
  color: blue;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  animation: scroll-banner 30s linear infinite;
  padding: 0 20px;
}

.banner-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.banner-text strong {
  font-weight: 600;
  text-decoration: underline;
}

@keyframes scroll-banner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.promo-banner:hover .banner-content {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .banner-text {
    font-size: 14px;
  }
}