/* ===== BASE ===== */
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  color: #111;
  background-color: #f5f9ff;
}

/* ===== BUTTONS ===== */
button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-yellow {
  background: #ffd700;
  color: #111;
}

.btn-yellow:hover {
  background: #ffcc00;
}

.btn-blue {
  background: #007bff;
  color: white;
}

.btn-blue:hover {
  background: #006ae0;
}

/* ===== LOGIN ===== */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  background: white;
  border-radius: 20px;
  text-align: center;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 360px;
}

.login-icon {
  font-size: 60px;
  margin-bottom: 10px;
}

.login-container h1 {
  color: #007bff;
  font-weight: 800;
  margin-bottom: 20px;
}

.login-container input {
  width: 90%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.copy {
  font-size: 13px;
  margin-top: 15px;
}

.copy a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

/* ===== DASHBOARD ===== */
.dashboard-body {
  text-align: center;
  padding-bottom: 50px;
}

.dashboard-title {
  color: #007bff;
  font-size: 30px;
  font-weight: 800;
  margin-top: 30px;
}

.logoff {
  margin: 10px auto 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 250px;
  padding: 30px 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 70px;
  margin-bottom: 10px;
}

.card h2 {
  color: #007bff;
  font-size: 18px;
  margin: 10px 0 5px;
  font-weight: 700;
}

.card p {
  color: #333;
  font-size: 14px;
  margin: 0;
}

/* Responsive Grid */
@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== QUIZ ===== */
.quiz-body {
  text-align: center;
  padding-bottom: 60px;
}

.quiz-title {
  color: #007bff;
  font-size: 28px;
  font-weight: 800;
  margin-top: 25px;
}

.stats {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 15px 0;
}

.progress-container {
  width: 80%;
  background: #eee;
  border-radius: 20px;
  margin: 10px auto 20px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 10px;
  background: linear-gradient(90deg, red, orange, yellow, green);
  width: 0%;
  border-radius: 20px;
}

.quiz-meta {
  font-size: 16px;
  font-weight: 600;
  color: #007bff;
  margin: 10px 0;
}

.question {
  font-size: 20px;
  font-weight: bold;
  color: #111;
  margin: 20px auto;
  width: 80%;
  max-width: 800px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.option {
  width: 80%;
  max-width: 700px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 15px;
  padding: 15px;
  font-weight: 600;
  font-size: 17px;
  text-align: left;
  transition: all 0.3s ease;
}

.option:hover {
  border-color: #007bff;
}

.option.correct {
  background: #c6f6c3;
  border-color: #27ae60;
}

.option.incorrect {
  background: #f8c6c6;
  border-color: #e74c3c;
}

.option .your-label {
  float: right;
  background: white;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
}

.explanation {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-top: 10px;
}

/* ===== FOOTER QUIZ ===== */
.quiz-footer {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.back-dashboard {
  margin-top: 20px;
  font-weight: bold;
  color: #007bff;
  cursor: pointer;
}

/* ===== BANNERS ===== */
.overlay-banner {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.hidden {
  display: none;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.remember-title {
  color: #007bff;
  font-weight: 800;
  font-size: 22px;
}

.line.black-bold {
  font-weight: bold;
  color: #111;
}

.line.red-bold {
  font-weight: bold;
  color: #e74c3c;
}

.icons {
  font-size: 22px;
  margin: 10px 0;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.cat-btn {
  background: #007bff;
  color: white;
  border-radius: 8px;
  padding: 8px;
  font-weight: 600;
}

.cat-btn:hover {
  background: #0069d9;
}

/* ===== MY PROGRESS CALENDAR v8.0 ===== */
#calendarContainer {
  background: white;
  border: 3px solid #bcdcff;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.25);
  padding: 30px 20px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.calendar-header button {
  background: #007bff;
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.calendar-header button:hover {
  background: #006ae0;
}

#monthYear {
  font-size: 20px;
  font-weight: 800;
  color: #007bff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  justify-items: center;
}

.calendar-day {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  border: 2px solid #bcdcff;
  border-radius: 10px;
  color: #007bff;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background: #007bff;
  color: white;
}

.calendar-day.active {
  background: #ffd700;
  color: #111;
  border-color: #e0b800;
}

#closeProgress {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #ffd700;
  color: #111;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

#closeProgress:hover {
  background: #ffcc00;
}

/* ===== MOBILE FIX — MY PROGRESS CALENDAR ===== */
@media (max-width: 600px) {
  #calendarContainer {
    width: 90%;
    padding: 20px 10px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-day {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .calendar-header button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  #monthYear {
    font-size: 18px;
  }
}
/* ===== QA ALIASES (per qa.html) ===== */
.qa-body {
  background: #f5f9ff;
  min-height: 100vh;
  padding-bottom: 60px;
}

.qa-header {
  text-align: center;
  margin-top: 25px;
}

.qa-title {
  color: #007bff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

.qa-stats-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-weight: bold;
  margin-bottom: 15px;
}

.qa-progress-wrapper {
  width: 80%;
  max-width: 800px;
  margin: 0 auto 15px;
}

.qa-progress-bar {
  width: 100%;
  background: #eee;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}

.qa-progress-fill {
  height: 10px;
  background: linear-gradient(90deg, red, orange, yellow, green);
  width: 0%;
  transition: width 0.3s ease;
}

.qa-progress-text {
  text-align: right;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 600;
}

.qa-main {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.qa-meta-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #007bff;
}

.level-pill {
  padding: 3px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
}
.level-easy { background: #2ecc71; }
.level-medium { background: #f1c40f; }
.level-hard { background: #e74c3c; }

.qa-question-box {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.qa-question {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.qa-answers {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.answer-option {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.answer-option:hover {
  border-color: #007bff;
}
.answer-option .answer-text {
  font-weight: 600;
  color: #111;
}
.answer-explanation {
  margin-top: 10px;
  font-weight: 600;
  color: #000;
  font-size: 14px;
}

.answer-correct {
  background: #c6f6c3;
  border-color: #27ae60;
}
.answer-wrong {
  background: #f8c6c6;
  border-color: #e74c3c;
}
.answer-disabled {
  pointer-events: none;
  opacity: 0.95;
}

.qa-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.qa-back {
  text-align: center;
  margin-bottom: 25px;
}
.qa-back .back-link {
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}

.qa-banner {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}
.qa-banner-content {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.category-list {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
  text-align: left;
}
.category-list li {
  margin-bottom: 6px;
}
.qa-legal {
  text-align: center;
  font-size: 12px;
  margin-bottom: 25px;
}
.qa-legal a {
  font-weight: bold;
  color: #007bff;
}
