/* ==========================================================================
   1. BASE RESETS & LAYOUT
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f0f2f5;
  color: #1c1e21;
  padding: 15px;
  line-height: 1.5;
}

#quiz-container {
  max-width: 650px;
  margin: 10px auto;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   2. HEADER & CANDIDATE BADGE
   ========================================================================== */
header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

header h2 {
  font-size: 20px;
  color: #0056b3;
  margin-bottom: 6px;
}

#user-badge {
  font-size: 13px;
  color: #495057;
  font-weight: 600;
  background-color: #e7f1ff;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}

#candidate-name {
  color: #0d6efd;
}

#timer {
  font-size: 15px;
  font-weight: bold;
  color: #dc3545;
  margin-top: 8px;
}

/* ==========================================================================
   3. AUTHENTICATION TABS & FORM INPUTS
   ========================================================================== */
.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  margin-top: 0;
  background-color: #e9ecef;
  color: #495057;
  font-size: 13px;
  border-radius: 4px;
}

.tab-btn.active {
  background-color: #0d6efd;
  color: #ffffff;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #212529;
}

.subtitle {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #343a40;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 15px;
  background-color: #fff;
  box-sizing: border-box;
}

input:focus,
select:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

button {
  width: 100%;
  padding: 12px 16px;
  margin-top: 16px;
  background-color: #0d6efd;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:disabled {
  background-color: #a5c7fe;
  cursor: not-allowed;
}

.secondary-btn {
  background-color: #6c757d;
}

/* ==========================================================================
   4. ACTIVE EXAM & PASSAGE DISPLAY
   ========================================================================== */
.passage-box {
  background-color: #eef2f7;
  border-left: 4px solid #0d6efd;
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
  color: #2b3035;
}

#question-box {
  background-color: #f8f9fa;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

#question-text {
  font-size: 16px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 16px;
}

.option-btn {
  background-color: #ffffff;
  color: #212529;
  text-align: left;
  border: 1px solid #dee2e6;
  margin-top: 8px;
  font-weight: 400;
  padding: 12px;
}

.option-btn.selected {
  background-color: #198754;
  color: #ffffff;
  border-color: #198754;
}

.navigation-btns {
  display: flex;
  gap: 10px;
}

.navigation-btns button {
  flex: 1;
  margin-top: 0;
}

#prev-btn {
  background-color: #6c757d;
}

#submit-btn {
  background-color: #dc3545;
}

/* ==========================================================================
   5. REVIEW & EXPLANATIONS SECTION
   ========================================================================== */
#score-screen {
  text-align: center;
}

#final-score {
  font-size: 18px;
  background-color: #e7f1ff;
  padding: 14px;
  border-radius: 8px;
  color: #084298;
  margin-bottom: 20px;
}

#review-container {
  text-align: left;
  margin-top: 24px;
}

.review-item {
  background: #ffffff;
  border-left: 5px solid #adb5bd;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.review-item.correct {
  border-left-color: #198754;
  background-color: #f6fff8;
}

.review-item.incorrect {
  border-left-color: #dc3545;
  background-color: #fff8f8;
}

.review-status {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.review-item.correct .review-status {
  color: #198754;
}

.review-item.incorrect .review-status {
  color: #dc3545;
}

/* ==========================================================================
   6. WHATSAPP CHANNEL PROMOTIONS & NOTIFICATIONS
   ========================================================================== */
.cbt-channel-box {
  background: #f0fdf4;
  border: 1.5px solid #25D366;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.channel-content h3 {
  color: #166534;
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
}

.channel-content p {
  color: #4b5563;
  margin: 0;
  font-size: 13.5px;
}

.channel-btn {
  background-color: #25D366;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.channel-btn:hover {
  background-color: #128C7E;
}

@media (max-width: 600px) {
  .cbt-channel-box {
    flex-direction: column;
    text-align: center;
  }
  .channel-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   7. PROFESSIONAL FOOTER & COPYRIGHT
   ========================================================================== */
.app-footer {
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
}

.footer-channel-link {
  margin-bottom: 12px;
  font-size: 14px;
  color: #343a40;
}

.footer-channel-link a {
  color: #25D366;
  font-weight: 700;
  text-decoration: none;
}

.footer-channel-link a:hover {
  text-decoration: underline;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0));
  margin-bottom: 15px;
}

.copyright-text {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #6c757d;
}

.copyright-text strong {
  color: #0d6efd;
  font-weight: 600;
}
