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

:root {
  --primary-color: #3b82f6;
  --secondary-color: #1d4ed8;
  --accent-color: #60a5fa;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #020617;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, var(--bg-gradient-start, #0f172a), var(--bg-gradient-end, #020617) 55%);
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  padding-left: 220px;
  /* <-- Add this */
}

/* Sidebar Navigation */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.sidebar-logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-logo span {
  color: var(--primary-color, #3b82f6);
}

.sidebar-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-nav-link:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-color, #3b82f6);
}

.sidebar-nav-link.active {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-color, #3b82f6);
  border-left: 3px solid var(--primary-color, #3b82f6);
}

.sidebar-nav-link svg {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  stroke: currentColor;
  fill: none;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  /* <-- This will now center the .app container */
  padding: 1.5rem 1.25rem 3rem;
  flex: 1;
  width: 100%;
  /* <-- Make it 100% of the parent */
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.nav-left {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--primary-color, #3b82f6);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
  cursor: pointer;
}

.nav-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-1px);
}

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

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--primary-color, #3b82f6);
}

.nav-tagline {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Google Sign In Button Styling */
#userInfo {
  display: flex;
  align-items: center;
}

#userInfo .g_id_signin {
  border-radius: 0.75rem !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  filter: brightness(1);
}

#userInfo .g_id_signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
}

#userInfo .g_id_signin:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Override Google's default button styles for better appearance */
#userInfo iframe {
  border-radius: 0.75rem !important;
  border: none !important;
}

/* Style the Google button container */
#userInfo>div {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Layout sections */

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero p {
  color: #9ca3af;
  max-width: 30rem;
  margin-bottom: 1.5rem;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-color, #3b82f6), var(--secondary-color, #1d4ed8));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.1s ease;
}

.primary-btn.small {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.primary-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.primary-btn.disabled {
  background: #9ca3af;
  /* gray background */
  color: #f3f4f6;
  /* lighter text for contrast */
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
  transform: none;
}

.hero-card {
  position: relative;
}

.card-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.25rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card.large {
  padding: 1.5rem 1.6rem;
}

.card-topic {
  font-size: 0.8rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-question {
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.card-input {
  width: 100%;
  min-height: 90px;
  max-height: 160px;
  resize: vertical;
  margin-top: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font: inherit;
}

.card-input::placeholder {
  color: #6b7280;
}

.card-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.6);
}

.answer-input-section {
  margin: 1.5rem 0;
}

.answer-text-input {
  width: 100%;
  max-width: 200px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  font-family: inherit;
  transition: all 0.2s ease;
}

.answer-text-input::placeholder {
  color: #6b7280;
  font-weight: 400;
  text-transform: none;
}

.answer-text-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
  background: rgba(30, 41, 59, 0.95);
}

.answer-text-input.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.answer-text-input.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.ghost-btn {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.08s ease, border-color 0.08s ease, color 0.08s ease;
}

.ghost-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: #e5e7eb;
}

/* Trainer layout */

.trainer {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.trainer-sidebar {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 1.25rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.trainer-sidebar h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.sidebar-text {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.9rem;
}

.sidebar-list li {
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.sidebar-footnote {
  font-size: 0.8rem;
  color: #6b7280;
}

.helper-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Question Options */
.question-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.option-item {
  padding: 0.9rem 1rem;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-item:hover {
  border-color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
}

.option-item.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
}

.option-item.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.option-item.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

.option-label {
  font-weight: 600;
  color: #3b82f6;
  min-width: 2rem;
}

.option-text {
  flex: 1;
  color: #e5e7eb;
}

/* Rationale Section */
.rationale-section {
  margin-top: 1rem;
  animation: slideDown 0.3s ease;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Answer Feedback */
.answer-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  animation: slideDown 0.3s ease;
}

.answer-feedback.correct {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.answer-feedback.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* AI Explanation Panel */
.ai-explanation-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.75rem;
  animation: slideDown 0.4s ease;
}

.ai-explanation-panel h3 {
  margin: 0 0 0.75rem 0;
  color: #3b82f6;
  font-size: 1.1rem;
}

.ai-explanation-content {
  color: #e5e7eb;
  line-height: 1.6;
}

.highlight {
  background: rgba(250, 204, 21, 0.3);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.highlight:hover {
  background: rgba(250, 204, 21, 0.5);
}

.option-reference {
  color: #60a5fa;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.option-reference:hover {
  color: #3b82f6;
}

/* Chips, badges, etc. */

.session-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #9ca3af;
}

.card-progress {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.right-aligned {
  align-items: center;
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

#home-link {
  cursor: pointer;
}

/* Utilities */

.hidden {
  display: none;
}

/* Responsive */

@media (max-width: 900px) {
  body {
    padding-left: 180px;
    /* <-- ADDED THIS */
  }

  .landing,
  .trainer {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .sidebar-nav {
    width: 180px;
  }

  .app {
    /* <-- MODIFIED THIS (it's now empty) */
  }
}

@media (max-width: 600px) {
  body {
    padding-left: 60px;
    /* <-- ADD THIS RULE HERE */
  }

  .sidebar-nav {
    width: 60px;
    padding: 1rem 0.5rem;
  }

  .sidebar-logo {
    font-size: 1.2rem;
    text-align: center;
  }

  .sidebar-logo span {
    display: none;
  }

  .sidebar-nav-link span {
    display: none;
  }

  .sidebar-nav-link {
    justify-content: center;
    padding: 0.75rem;
  }

  .sidebar-nav-link svg {
    margin-right: 0;
  }

  .app {}

  .hero h1 {
    font-size: 1.7rem;
  }

  .top-nav {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .nav-left {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }

  .nav-right {
    width: 100%;
  }

  .nav-btn {
    width: 100%;
    text-align: center;
    display: block;
  }
}


/* SAT BREAKDOWN SCORES */

/* ================================ */
/* SAT BREAKDOWN STYLES */
/* ================================ */

.sat-breakdown {
  max-width: 900px;
  margin: 0 auto;
}

.breakdown-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.breakdown-subtitle {
  color: #9ca3af;
  margin-bottom: 2rem;
}

.breakdown-tabs {
  display: flex;
  gap: 2rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 0.75rem 0;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  font-weight: 500;
}

.tab-btn:hover {
  color: #e5e7eb;
}

/* Score Display */

.score-display {
  margin-bottom: 2.5rem;
}

.score-display h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.score-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  max-width: 250px;
}

.score-label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
  color: #e5e7eb;
}

/* Skills Section */

.skills-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.skills-description {
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.skill-item {
  margin-bottom: 2.5rem;
}

.skill-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-meta {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Progress Bar */

.progress-bar-container {
  position: relative;
  height: 2rem;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  position: absolute;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 0.5rem;
  transition: width 0.6s ease;
}

.progress-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
  pointer-events: none;
}

/* Skill Footer */

.skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Constrain score trend canvas to avoid large responsive height when no data */
#score-trend {
  height: 120px !important;
  max-height: 160px;
  width: 100% !important;
  display: block;
}

.performance-text {
  font-size: 0.9rem;
  color: #9ca3af;
}

.performance-text strong {
  color: #3b82f6;
  font-weight: 600;
}

.skill-link {
  font-size: 0.9rem;
  color: #3b82f6;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.skill-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 600px) {
  .breakdown-header h1 {
    font-size: 1.5rem;
  }

  .skill-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .skill-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================ */
/* SKILL REVIEW PAGE */
/* ================================ */

.skill-review-page {
  max-width: 900px;
  margin: 0 auto;
}

.skill-review-header {
  margin-bottom: 3rem;
}

.skill-review-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skill-score-info {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-score-info .score-label {
  font-size: 1rem;
  color: #9ca3af;
}

.skill-score-info .score-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3b82f6;
}

.questions-review-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.questions-review-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.review-question-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.review-question-number {
  font-size: 0.85rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.review-question-text {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
}

.review-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.review-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
}

.review-option.option-correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.review-option.option-wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.option-text {
  flex: 1;
  font-size: 1rem;
}

.option-indicator {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.option-correct .option-indicator {
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.option-wrong .option-indicator {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

.review-answer-section {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.answer-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.user-answer-label,
.correct-answer-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.wrong-icon {
  color: #ef4444;
  font-size: 1.2rem;
  font-weight: bold;
}

.correct-icon {
  color: #10b981;
  font-size: 1.2rem;
  font-weight: bold;
}

.wrong-answer {
  color: #ef4444;
}

.correct-answer {
  color: #10b981;
}

.review-explanation {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db;
}

.review-explanation strong {
  color: #e5e7eb;
  display: block;
  margin-bottom: 0.5rem;
}

.review-actions {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.no-questions-review {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.no-questions-review p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .skill-review-header h1 {
    font-size: 1.75rem;
  }

  .review-question-card {
    padding: 1.5rem;
  }

  .answer-comparison {
    gap: 1rem;
  }
}

/* Add these enhanced styles to your style.css */

/* ================================ */
/* ENHANCED SAT BREAKDOWN STYLES */
/* ================================ */

.sat-breakdown {
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breakdown-header {
  text-align: center;
  margin-bottom: 3rem;
}

.breakdown-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breakdown-subtitle {
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Enhanced Tabs */
.breakdown-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  max-width: 500px;
  margin: 0 auto 3rem;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.tab-btn:hover {
  color: #e5e7eb;
}

.tab-btn.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Enhanced Score Display */
.score-display {
  margin-bottom: 3rem;
  text-align: center;
}

.score-display h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
}

.score-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  max-width: 350px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.score-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.score-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.score-label {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.score-value {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Enhanced Skills Section */
.skills-section {
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.skills-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.skills-description {
  color: #9ca3af;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Enhanced Skill Items */
.skill-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateX(8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-item:hover::before {
  transform: scaleY(1);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.skill-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e5e7eb;
}

.skill-meta {
  font-size: 0.95rem;
  color: #9ca3af;
  background: rgba(148, 163, 184, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Enhanced Progress Bar */
.progress-bar-container {
  position: relative;
  height: 2.5rem;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 999px;
  overflow: visible;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: shimmer 2s infinite;
  position: relative;
  overflow: hidden;
}

.progress-bar::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: slide 2s infinite;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

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

  100% {
    transform: translateX(100%);
  }
}

.progress-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

/* Enhanced Skill Footer */
.skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.performance-text {
  font-size: 1rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.performance-text strong {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1.1rem;
}

.skill-link {
  font-size: 0.95rem;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-weight: 500;
}

.skill-link:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Loading State */
.skill-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skill-item.loading .progress-bar {
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-email-section h2,
  .profile-stats h2 {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .profile-header {
    padding: 2rem 1.5rem;
  }

  #profile-name {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================ */
/* BREAKDOWN EMPTY STATE */
/* ================================ */

.empty-progress-container {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
  margin-top: 2rem;
  animation: fadeInUp 0.6s ease;
}

.empty-progress-container h2 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.empty-progress-container p {
  font-size: 1.05rem;
  color: #9ca3af;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.empty-progress-container .primary-btn {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* --- Adds styles for the new "View" panel --- */
.score-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.score-summary-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.score-summary-card .score-label {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.score-summary-card .score-value {
  font-size: 2rem;
  font-weight: 600;
  color: #e5e7eb;
}

.score-summary-card.total .score-value {
  color: var(--primary-color, #3b82f6);
  font-size: 2.25rem;
  font-weight: 700;
}

/* --- Adds styles for the new "View" breakdown --- */

.details-header {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 1.5rem;
}

.breakdown-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.breakdown-title {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.breakdown-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  font-size: 0.9rem;
  color: #c3cad3;
}

.breakdown-stats .stat-label {
  color: #818c9c;
}


/* --- Styles for the new "Tests Taken" cards --- */

.test-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.test-card-item {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
}

.test-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
}

.test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.test-card-date {
  font-weight: 600;
  color: #e5e7eb;
}

.test-card-type {
  font-size: 0.8rem;
  color: #9ca3af;
  background: rgba(148, 163, 184, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.test-card-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.test-card-score-total {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  padding-right: 1.5rem;
}

.test-card-score-total .score-label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
  display: block;
}

.test-card-score-total .score-value {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-color, #3b82f6);
  line-height: 1;
}

.test-card-score-sections {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-score .score-label {
  font-size: 0.9rem;
  color: #9ca3af;
}

.section-score .score-value-small {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e5e7eb;
}

.test-card-actions {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  gap: 0.5rem;
}

.test-card-actions .ghost-btn {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Style for the delete button */
.ghost-btn.danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(239, 68, 68, 0.8);
}

.ghost-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.7);
  color: #ef4444;
}

/* ================================ */
/* RESOURCE LIST STYLES */
/* ================================ */

.resource-list {
  list-style: none;
  /* Removes the bullets */
  padding-left: 0;
  margin-top: 1rem;
}

.resource-list li {
  margin-bottom: 0.85rem;
  /* Adds space between each link */
}

.resource-list a {
  color: var(--accent-color, #60a5fa);
  /* Uses your site's accent color */
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.resource-list a:hover {
  color: var(--primary-color, #3b82f6);
  /* Uses your primary color on hover */
}

/* ================================ */
/* ENHANCED PROFILE PAGE STYLES */
/* ================================ */

.profile {
  animation: fadeInUp 0.6s ease;
}

.profile-header {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#profile-picture {
  position: relative;
  width: 140px !important;
  height: 140px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  padding: 4px;
  margin: 0 auto 1.5rem !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

#profile-picture:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

#profile-picture img {
  border: 3px solid rgba(15, 23, 42, 0.9);
}

/* Profile Header - Center the name */
#profile-name {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #e5e7eb, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-align: center; /* Added */
}

#profile-email {
  color: #9ca3af !important;
  font-size: 1.05rem;
  margin: 0;
  text-align: center; /* Added */
}

/* Profile Info Grid - Email Left, Stats Right */
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

/* Email Section (Left) */
.profile-email-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.profile-email-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.profile-email-section:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.profile-email-section:hover::before {
  transform: scaleX(1);
}

.profile-email-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: #e5e7eb;
  font-weight: 700;
  text-align: center;
}

.profile-email-section p {
  font-size: 1.05rem;
  color: #9ca3af !important;
  margin: 0;
  word-break: break-word;
  text-align: center;
}


/* Profile Stats Section */
.profile-stats {
  margin-top: 0; /* Changed from 2.5rem */
}

.profile-stats h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
  font-weight: 700;
  text-align: left; /* Changed from center */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 1.25rem !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-value {
  font-size: 2.5rem !important;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Profile Actions */
.profile-actions {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.secondary-btn {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* Profile Picture Selection */
#profile-picture-selection {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.25rem;
  animation: slideDown 0.3s ease;
}

#profile-picture-selection p {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

#profile-picture-selection > div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-option {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s ease;
  border: 3px solid transparent !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-option:hover {
  transform: scale(1.15) rotate(5deg);
  border-color: #3b82f6 !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.profile-option:active {
  transform: scale(1.05);
}

/* Profile Badges/Achievements Section (Optional Enhancement) */
.profile-badges {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.25rem;
}

.profile-badges h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
  font-weight: 700;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.badge-item {
  text-align: center;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.badge-item:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.badge-name {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-email-section h2,
  .profile-stats h2 {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .profile-header {
    padding: 2rem 1.5rem;
  }

  #profile-name {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}