/* ====================================================== */
/*    1. IMPORT MAIN STRUCTURE (Inherit from Parent)      */
/* ====================================================== */
/* This pulls in all your robust layout, fonts, and grids */
@import url('../style.css');

/* ====================================================== */
/*    2. THEME OVERRIDES (Green for Multilevel)           */
/* ====================================================== */
:root {
  /* Change Blue to Emerald Green */
  --primary-color: #10b981; 
  --primary-hover: #059669;
  --primary-light: #ecfdf5; 
  
  /* Update focus and answered states */
  --border-focus: #10b981;
  --answered-color: #059669;
}

/* Override selection color (highlighting text) */
::selection {
  background-color: var(--primary-light);
  color: var(--text-dark);
}

/* ====================================================== */
/*    3. UI OVERRIDES                                     */
/* ====================================================== */

/* Add a green line to the top bar */
#topControlBar {
  border-bottom: 3px solid var(--primary-color);
}

/* Home Title Styling */
.home-title {
  color: var(--primary-hover);
  margin-top: 1rem;
}

/* Customize the Home Menu Buttons (Green accent) */
.home-menu-grid button {
  border-top: 4px solid var(--primary-color); 
}
.home-menu-grid button:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

/* Locked test cards */
.test-card.locked {
  opacity: 0.8;
  border-style: dashed;
  cursor: not-allowed;
}
.status-locked {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Hide Backend-specific elements not needed for local mode */
.user-actions-bar { 
  display: none !important; 
}

/* ====================================================== */
/*    4. TEST INTERFACE ADJUSTMENTS                       */
/* ====================================================== */

/* Navigation Number Buttons */
.q-nav-item.current {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.q-nav-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
}

/* Active Tabs (Part 1, Part 2...) */
.passage-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
}

/* Multilevel question blocks (distinct look) */
.question-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 6px solid var(--primary-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.question-block .instructions {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

/* ====================================================== */
/*    5. MULTILEVEL SCORE CARD (New)                      */
/* ====================================================== */
/* This styles the result box to show X/75 points */

.score-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  max-width: 450px;
  margin: 0 auto 2rem auto;
  position: relative;
  overflow: hidden;
  border-top: 6px solid var(--primary-color);
}

.score-big {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-total {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

/* ====================================================== */
/*    6. CEFR LEVEL BADGES                                */
/* ====================================================== */
.cefr-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Specific Colors for Levels */
.cefr-badge.C1 { background-color: #10b981; } /* Green */
.cefr-badge.B2 { background-color: #3b82f6; } /* Blue */
.cefr-badge.B1 { background-color: #f59e0b; } /* Orange */
.cefr-badge.Fail { background-color: #ef4444; } /* Red */

/* ====================================================== */
/*    7. FEEDBACK TABLE COLORS                            */
/* ====================================================== */

/* Rows for the feedback table */
.row-correct { 
  background-color: #dcfce7 !important; /* Pale Green */
}
.row-incorrect { 
  background-color: #fee2e2 !important; /* Pale Red */
}

/* Table Header overrides */
.comparison-table th {
  background-color: var(--primary-color);
  color: white;
}
