
/* ===== WELCOME SECTION STYLES ===== */

.welcome-container {
  max-width: 900px;
  margin: 30px auto;          /* Reduced from 40px */
  padding: 15px;              /* Reduced from 20px */
}

.welcome-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;        /* Reduced from 20px */
  padding: 30px 25px;         /* Reduced from 50px 40px */
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
  color: white;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-icon {
  font-size: 48px;            /* Reduced from 64px */
  margin-bottom: 15px;        /* Reduced from 20px */
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.welcome-title {
  font-size: 28px;            /* Reduced from 36px */
  font-weight: 800;
  margin-bottom: 12px;        /* Reduced from 15px */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  font-size: 15px;            /* Reduced from 18px */
  margin-bottom: 25px;        /* Reduced from 40px */
  opacity: 0.95;
  font-weight: 400;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));  /* Reduced from 200px */
  gap: 15px;                  /* Reduced from 25px */
  margin-bottom: 25px;        /* Reduced from 40px */
}

.feature-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;        /* Reduced from 15px */
  padding: 15px 12px;         /* Reduced from 25px 20px */
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 36px;            /* Reduced from 48px */
  margin-bottom: 10px;        /* Reduced from 15px */
}

.feature-text h3 {
  font-size: 16px;            /* Reduced from 18px */
  font-weight: 700;
  margin-bottom: 6px;         /* Reduced from 8px */
  color: white;
}

.feature-text p {
  font-size: 13px;            /* Reduced from 14px */
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

.welcome-cta {
  margin-top: 25px;           /* Reduced from 30px */
  padding-top: 25px;          /* Reduced from 30px */
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-text {
  font-size: 14px;            /* Reduced from 16px */
  margin-bottom: 15px;        /* Reduced from 20px */
  opacity: 0.95;
}

.cta-button {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 30px;         /* Reduced from 15px 40px */
  border-radius: 25px;        /* Reduced from 30px */
  font-size: 14px;            /* Reduced from 16px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.cta-button:active {
  transform: translateY(0) scale(1);
}

/* Responsive Design for Welcome Section */
@media (max-width: 768px) {
  .welcome-card {
    padding: 20px 15px;       /* Further reduced for mobile */
  }

  .welcome-title {
    font-size: 24px;          /* Further reduced for mobile */
  }

  .welcome-subtitle {
    font-size: 16px;
  }

  .welcome-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-item {
    padding: 20px 15px;
  }

  .feature-icon {
    font-size: 40px;
  }

  .feature-text h3 {
    font-size: 16px;
  }

  .feature-text p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .welcome-container {
    margin: 20px auto;
    padding: 10px;
  }

  .welcome-card {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .welcome-icon {
    font-size: 48px;
  }

  .welcome-title {
    font-size: 24px;
  }

  .welcome-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 14px;
  }
}

/* ===== 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;
}

.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);
}

.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;
}
.llm-modal-body{
	color: white;
   }

/* ===== ENHANCED DASHBOARD STYLES ===== */

.enhanced-dashboard {
  background: #f5f5f5;
  padding: 20px;
  margin-top: 20px;
}

.collapse-dashboard-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.collapse-dashboard-btn:hover {
  background: #b91c1c;
  transform: scale(1.02);
}

/* Dashboard Stats Grid - FIXED CLASS NAME */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

/* Stat Card - FIXED CLASS NAME */
.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.stat-content h3 {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #667eea;
}

/* Section Title - FIXED CLASS NAME */
.section-title {
  color: #333;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subject Performance Section */
.subject-performance-section {
  margin-bottom: 25px;
}

/* Subject Cards Grid - FIXED CLASS NAME */
.subject-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

/* Subject Performance Card - FIXED CLASS NAME */
.subject-performance-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.subject-performance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Physics Card Styling */
.physics-card {
  border-top: 3px solid #3b82f6;
}

/* Chemistry Card Styling */
.chemistry-card {
  border-top: 3px solid #f97316;
}

/* Biology Card Styling */
.biology-card {
  border-top: 3px solid #10b981;
}

.subject-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.subject-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 6px;
}

.subject-card-header h3 {
  color: #333;
  font-size: 15px;
  margin: 0;
  font-weight: 700;
}

.subject-card-body {
  /* Body content styling */
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
}

.progress-label {
  font-weight: 600;
}

.progress-value {
  font-weight: 600;
  color: #333;
}

.progress-percentage {
  color: #667eea;
  margin-left: 5px;
}

.progress-bar {
  width: 100%;
  height: 7px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.physics-fill {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.chemistry-fill {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.biology-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}

.difficulty-breakdown {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.difficulty-item {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 4px;
  background: #f9fafb;
}

.difficulty-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 1px;
}

.difficulty-label.easy {
  color: #059669;
}

.difficulty-label.medium {
  color: #d97706;
}

.difficulty-label.hard {
  color: #dc2626;
}

.difficulty-count {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.total-questions {
  color: #666;
  font-size: 11px;
  margin-bottom: 12px;
  text-align: center;
}

.start-practice-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-practice-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Dashboard Container */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Welcome Banner */
.enhanced-welcome-banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.enhanced-welcome-banner h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.enhanced-welcome-banner p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.95;
  margin: 0;
}

/* Accordion Sections */
.enhanced-accordion-section {
  background: white;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.accordion-header-bar {
  padding: 15px 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: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-stats-grid,
  .subject-cards-grid {
    grid-template-columns: 1fr;
  }

  .enhanced-welcome-banner h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .llm-buttons-grid {
    grid-template-columns: 1fr;
  }

  .quick-prompts-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 15px;
  }

  .subject-performance-card {
    padding: 15px;
  }
}

/* Hide original welcome message when enhanced dashboard is shown */
.container.has-enhanced-dashboard .welcome-message {
  display: none;
}

/* Additional Button Styles */
.upgrade-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.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;
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
  .banner-text {
    font-size: 12px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-icon {
    font-size: 28px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .subject-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

/* ===== CLEAN HEADER STYLES - PROPER ALIGNMENT ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
        }

        .header {
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 30px;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* LEFT SIDE - Logo Section */
        .logo-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 24px;
            font-weight: 800;
            color: #1a1a1a;
            text-decoration: none;
        }

        .logo img {
            height: 32px;
        }

        .trial-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
        }

        /* RIGHT SIDE - Actions Section */
        .right-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .upgrade-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 8px 14px;/* Reduced from 10px 20px */
            border-radius: 8px;
            border: none;
            font-size: 10px;/* Reduced from 14px */
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
            transition: transform 0.2s, box-shadow 0.2s;
            white-space: nowrap;
        }

        .upgrade-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #667eea;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 6px;
            transition: background-color 0.2s;
            white-space: nowrap;
        }

        .user-info:hover {
            background-color: #f3f4f6;
        }

        .user-icon {
            font-size: 16px;
        }

        /* Hamburger Menu - Always Visible */
        .hamburger {
            display: flex;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            padding: 8px;
            border-radius: 6px;
            transition: background-color 0.2s;
        }

        .hamburger:hover {
            background-color: #f3f4f6;
        }

        .hamburger span {
            width: 24px;
            height: 3px;
            background-color: #333;
            border-radius: 2px;
            transition: all 0.3s;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Menu Overlay */
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .mobile-menu-overlay.active {
            display: block;
        }

        /* Menu Sidebar */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: -350px;
            width: 300px;
            height: 100%;
            background: #ffffff;
            box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
            z-index: 1001;
            transition: left 0.3s ease;
            overflow-y: auto;
        }

        .mobile-menu.active {
            left: 0;
        }

        .mobile-menu-header {
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mobile-menu-close {
            font-size: 24px;
            cursor: pointer;
            color: #666;
            background: none;
            border: none;
            padding: 5px;
            transition: color 0.2s;
        }

        .mobile-menu-close:hover {
            color: #333;
        }

        .mobile-menu-items {
            padding: 10px 0;
        }

        .mobile-nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 20px;
            color: #333;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
            border-left: 3px solid transparent;
        }

        .mobile-nav-item:hover {
            background-color: #f3f4f6;
            border-left-color: #667eea;
        }

        .mobile-nav-item i {
            color: #667eea;
        }

        .mobile-nav-icon {
            font-size: 20px;
            margin-right: 12px;
        }

        .mobile-dropdown {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .mobile-dropdown.active {
            max-height: 500px;
        }

        .mobile-dropdown-item {
            padding: 12px 20px 12px 52px;
            color: #555;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .mobile-dropdown-item:hover {
            background-color: #f9fafb;
        }

        @media (max-width: 768px) {
            .header-container {
                padding: 12px 15px;
            }

            .logo {
                font-size: 18px;
            }

            .logo img {
                height: 28px;
            }

            .trial-badge {
                display: none;
            }

            .upgrade-btn {
                font-size: 12px;
                padding: 8px 16px;
            }
        }

        @media (max-width: 480px) {
            .user-info span {
                display: none;
            }

            .user-icon {
                font-size: 20px;
            }

            .right-section {
                gap: 10px;
            }
        }
/* ===== WELCOME SECTION STYLES ===== */

.welcome-container {
  max-width: 900px;
  margin: 30px auto;          /* Reduced from 40px */
  padding: 15px;              /* Reduced from 20px */
}

.welcome-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;        /* Reduced from 20px */
  padding: 30px 25px;         /* Reduced from 50px 40px */
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
  color: white;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-icon {
  font-size: 48px;            /* Reduced from 64px */
  margin-bottom: 15px;        /* Reduced from 20px */
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.welcome-title {
  font-size: 28px;            /* Reduced from 36px */
  font-weight: 800;
  margin-bottom: 12px;        /* Reduced from 15px */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  font-size: 15px;            /* Reduced from 18px */
  margin-bottom: 25px;        /* Reduced from 40px */
  opacity: 0.95;
  font-weight: 400;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));  /* Reduced from 200px */
  gap: 15px;                  /* Reduced from 25px */
  margin-bottom: 25px;        /* Reduced from 40px */
}

.feature-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;        /* Reduced from 15px */
  padding: 15px 12px;         /* Reduced from 25px 20px */
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 36px;            /* Reduced from 48px */
  margin-bottom: 10px;        /* Reduced from 15px */
}

.feature-text h3 {
  font-size: 16px;            /* Reduced from 18px */
  font-weight: 700;
  margin-bottom: 6px;         /* Reduced from 8px */
  color: white;
}

.feature-text p {
  font-size: 13px;            /* Reduced from 14px */
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

.welcome-cta {
  margin-top: 25px;           /* Reduced from 30px */
  padding-top: 25px;          /* Reduced from 30px */
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-text {
  font-size: 14px;            /* Reduced from 16px */
  margin-bottom: 15px;        /* Reduced from 20px */
  opacity: 0.95;
}

.cta-button {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 30px;         /* Reduced from 15px 40px */
  border-radius: 25px;        /* Reduced from 30px */
  font-size: 14px;            /* Reduced from 16px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.cta-button:active {
  transform: translateY(0) scale(1);
}

/* Responsive Design for Welcome Section */
@media (max-width: 768px) {
  .welcome-card {
    padding: 20px 15px;       /* Further reduced for mobile */
  }

  .welcome-title {
    font-size: 24px;          /* Further reduced for mobile */
  }

  .welcome-subtitle {
    font-size: 16px;
  }

  .welcome-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-item {
    padding: 20px 15px;
  }

  .feature-icon {
    font-size: 40px;
  }

  .feature-text h3 {
    font-size: 16px;
  }

  .feature-text p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .welcome-container {
    margin: 20px auto;
    padding: 10px;
  }

  .welcome-card {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .welcome-icon {
    font-size: 48px;
  }

  .welcome-title {
    font-size: 24px;
  }

  .welcome-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 14px;
  }
}

/* ===== 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;
}

.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);
}

.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;
}
.llm-modal-body{
	color: white;
   }

/* ===== ENHANCED DASHBOARD STYLES ===== */

.enhanced-dashboard {
  background: #f5f5f5;
  padding: 20px;
  margin-top: 20px;
}

.collapse-dashboard-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.collapse-dashboard-btn:hover {
  background: #b91c1c;
  transform: scale(1.02);
}

/* Dashboard Stats Grid - FIXED CLASS NAME */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

/* Stat Card - FIXED CLASS NAME */
.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.stat-content h3 {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #667eea;
}

/* Section Title - FIXED CLASS NAME */
.section-title {
  color: #333;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subject Performance Section */
.subject-performance-section {
  margin-bottom: 25px;
}

/* Subject Cards Grid - FIXED CLASS NAME */
.subject-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

/* Subject Performance Card - FIXED CLASS NAME */
.subject-performance-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.subject-performance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Physics Card Styling */
.physics-card {
  border-top: 3px solid #3b82f6;
}

/* Chemistry Card Styling */
.chemistry-card {
  border-top: 3px solid #f97316;
}

/* Biology Card Styling */
.biology-card {
  border-top: 3px solid #10b981;
}

.subject-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.subject-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 6px;
}

.subject-card-header h3 {
  color: #333;
  font-size: 15px;
  margin: 0;
  font-weight: 700;
}

.subject-card-body {
  /* Body content styling */
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
}

.progress-label {
  font-weight: 600;
}

.progress-value {
  font-weight: 600;
  color: #333;
}

.progress-percentage {
  color: #667eea;
  margin-left: 5px;
}

.progress-bar {
  width: 100%;
  height: 7px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.physics-fill {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.chemistry-fill {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.biology-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}

.difficulty-breakdown {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.difficulty-item {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 4px;
  background: #f9fafb;
}

.difficulty-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 1px;
}

.difficulty-label.easy {
  color: #059669;
}

.difficulty-label.medium {
  color: #d97706;
}

.difficulty-label.hard {
  color: #dc2626;
}

.difficulty-count {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.total-questions {
  color: #666;
  font-size: 11px;
  margin-bottom: 12px;
  text-align: center;
}

.start-practice-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-practice-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Dashboard Container */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Welcome Banner */
.enhanced-welcome-banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.enhanced-welcome-banner h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.enhanced-welcome-banner p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.95;
  margin: 0;
}

/* Accordion Sections */
.enhanced-accordion-section {
  background: white;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.accordion-header-bar {
  padding: 15px 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: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-stats-grid,
  .subject-cards-grid {
    grid-template-columns: 1fr;
  }

  .enhanced-welcome-banner h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .llm-buttons-grid {
    grid-template-columns: 1fr;
  }

  .quick-prompts-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 15px;
  }

  .subject-performance-card {
    padding: 15px;
  }
}

/* Hide original welcome message when enhanced dashboard is shown */
.container.has-enhanced-dashboard .welcome-message {
  display: none;
}

/* Additional Button Styles */
.upgrade-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.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;
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
  .banner-text {
    font-size: 12px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-icon {
    font-size: 28px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .subject-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");

/* CSS Variables for consistent theming */
:root {
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #6366f1;
  --secondary-color: #059669;
  --danger-color: #dc2626;
  --warning-color: #f59e0b;
  --success-color: #10b981;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  background: linear-gradient(135deg, var(--neutral-50) 0%, #f8fafc 100%);
  color: var(--neutral-700);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Header */
.headerold {
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header nav {
  display: flex;
  gap: 8px;
}

.header nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Container Layout */
.container {
  display: flex;
  min-height: calc(100vh - 140px);
  gap: 0;
}

/* Modern Sidebar */
.sidebar {
  width: 320px;
  background: var(--white);
  border-right: 1px solid var(--neutral-200);
  padding: 24px 16px;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--primary-light)
  );
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-400);
}

/* Modern Accordion */
.accordion {
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  
  border: 0.5px solid var(--neutral-200);
  
  background: var(--white);
}

.accordion:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.accordion button {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px; /*original 15px*/
  position: relative;
}

.accordion button::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.accordion button:hover {
  background: var(--neutral-50);
  color: var(--primary-color);
}

.accordion button.active::after {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 8px 16px 16px;
  display: none;
  background: var(--neutral-50);
  border-top: 0.5px solid var(--neutral-200);
}

/* Modern Session Cards */
/*.session-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  padding: 16px;
  margin: 8px 0;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}*/

.session-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  padding: 8px 12px; /* Reduced from 16px */
  margin: 6px 0; /* Slightly tighter spacing */
  border-radius: var(--radius-md); /* Optional: smaller radius */
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding-bottom: 8px; /* reduced bottom padding*/
}

.session-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.session-card:hover {
  box-shadow: var(--shadow-lg);
  background: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.session-card:hover::before {
  opacity: 1;
}

.session-card:active {
  transform: translateY(0);
}

/* Session Card Content */
.session-card > div:first-child {
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 8px;
  font-size: 14px;
}

.session-card.selected {
  background-color: #e0f7fa; /* Light cyan or any highlight color */
  border-color: #00acc1; /* Optional: accent border */
}

.session-card > div:last-child {
  color: var(--neutral-600);
  font-size: 13px;
  font-weight: 500;
}

/* Modern Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--neutral-200);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-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%);
  }
}

/* Main Panel */
.main-panel {
  flex: 1;
  padding: 32px;
  background: var(--white);
  margin: 16px;
  margin-left: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.main-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light),
    var(--secondary-color)
  );
}

.main-panel h2 {
  color: var(--neutral-800);
  font-size: 1.5rem; /*changed from 2rem*/
  font-weight: 700;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.main-panel p {
  color: var(--neutral-600);
  font-size: 16px;
  margin-bottom: 24px;
}

/* MCQ Styles */
#mcq-container .session-card {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--neutral-200);
}

.mcq-meta {
  background: var(--neutral-50);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--neutral-600);
  border-left: 4px solid var(--primary-color);
}

#mcq-container strong {
  color: var(--neutral-800);
  font-weight: 800;
}

#mcq-container ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

#mcq-container li {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 1px solid var(--neutral-200);
}

#mcq-container li:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(4px);
}

#mcq-container label {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  font-weight: 500;
}

#mcq-container input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: var(--primary-color);
}

/* Modern Button */
button {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

button:active {
  transform: translateY(0);
}

/* Modern Footer */
.footer {
  background: var(--neutral-800);
  color: var(--neutral-300);
  text-align: center;
  padding: 24px;
  margin-top: 16px;
  border-top: 1px solid var(--neutral-200);
  font-size: 14px;
}

/* Results Styling */
.session-card[style*="border-left: 4px solid #4caf50"] {
  background: linear-gradient(135deg, #f0fff4 0%, #f0f9f4 100%);
  border-color: var(--success-color) !important;
}

.session-card[style*="border-left: 4px solid #f44336"] {
  background: linear-gradient(135deg, #fef2f2 0%, #fef1f1 100%);
  border-color: var(--danger-color) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
  }

  .main-panel {
    margin: 8px;
    margin-left: 0;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-height: 300px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .header nav {
    gap: 4px;
  }

  .header nav a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .main-panel {
    margin: 8px;
    padding: 16px;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary-color);
}
.text-success {
  color: var(--success-color);
}
.text-danger {
  color: var(--danger-color);
}
.text-warning {
  color: var(--warning-color);
}
.bg-primary {
  background-color: var(--primary-color);
}
.bg-success {
  background-color: var(--success-color);
}
.bg-danger {
  background-color: var(--danger-color);
}
.bg-warning {
  background-color: var(--warning-color);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
button:focus-visible,
.session-card:focus-visible,
.accordion button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Disable text selection (optional) */
/*
body {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
*/
.score-card {
  padding: 1rem;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-inline {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.1rem;
}

.score-display {
  font-weight: bold;
}

.performance-text.excellent {
  color: #2e8b57;
  font-weight: bold;
}

.performance-text.good {
  color: #1e90ff;
}

.performance-text.needs-improvement {
  color: #ff6347;
}

.percentage {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

/* new addition for reducing side bard item buttons*/
.sidebar-item {
  padding: 4px 8px;
  font-size: 0.85rem;
  line-height: 1.2;
  margin-bottom: 2px;
  border-radius: 4px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
}

.sidebar-item:hover {
  background-color: #f0f0f0;
}
/*chapter review buttons*/
.chapter-review-btn {
  background-color: #0077cc;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 12px;
}

.chapter-review-btn:hover {
  background-color: #005fa3;
}

/* Welcome page styles */

.welcome-page {
  .welcome-section {
    text-align: center;
    padding: 2rem;
  }

  .quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }

  .stat-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
  }

  .stat-number {
    font-size: 2rem;
    font-weight: bold;
  }

  .features {
    margin-top: 3rem;
  }

  .features h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-left: 4px solid #3b82f6;
  }

  .feature-item h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  .feature-item p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  @media (max-width: 768px) {
    .quick-stats {
      grid-template-columns: 1fr;
    }

    .feature-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Sidebar logged-out styles */
.sidebar-logged-out {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px;

  button {
    width: 100%;
    margin: 0;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
  }

  .trial-btn {
    background: #0077cc;
    color: #fff;
  }
  .trial-btn:hover {
    background: #005fa3;
  }
  .signup-btn {
    background: #00aa88;
    color: #fff;
  }
  .signup-btn:hover {
    background: #008f73;
  }
  .signin-btn {
    background: #444;
    color: #fff;
  }
  .signin-btn:hover {
    background: #222;
  }
}
.export-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
<!--Timer Toggle-->

/* Timer Toggle Button Styles */
.timer-toggle-btn {
  margin-left: 6px;
  padding: 4px 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.timer-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.timer-toggle-btn.paused {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.timer-toggle-btn:active {
  transform: translateY(0);
}
