/* ===== BODY ===== */
body {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 22%),
              radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.16), transparent 20%),
              #f8fbff;
  font-family: "Inter", sans-serif;
  color: #1e293b;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.14), transparent 20%),
                    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.08), transparent 20%);
  z-index: -1;
}

.hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 260px;
  height: 260px;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  filter: blur(20px);
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.1;
  color: #0f172a;
}

#topic-container p {
  color: #475569;
  font-size: 1rem;
}

.input-group {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.input-group-text {
  border: none;
  background: #ffffff;
  color: #2563eb;
}

.form-control {
  border: none;
  background: #ffffff;
  box-shadow: none;
}

.form-control:focus {
  border: none;
  box-shadow: none;
}

#addQuestionModal .form-control,
#addQuestionModal .form-select {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#addQuestionModal .form-control:focus,
#addQuestionModal .form-select:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
}

/* ===== NAVBAR ===== */
.navbar {
  background: #2563eb !important;
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-size: 1.45rem;
  font-weight: 700;
}

.navbar .btn-light {
  border-radius: 10px;
  font-weight: 600;
  padding: 8px 18px;
  transition: 0.2s;
}

.navbar .btn-light:hover {
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
#topic-container h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #0f172a;
}

#topic-container p {
  color: #64748b;
  font-size: 1rem;
}

/* ===== TOPIC CARD ===== */
.topic-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: 0.25s ease;
  height: 100%;
}

.topic-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.topic-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.topic-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.topic-desc {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.topic-btn {
  width: 100%;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px;
}

/* ===== QUIZ SECTION ===== */
.card {
  border: none !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.card-header {
  background: white !important;
  border-bottom: 1px solid #e2e8f0;
}

#quiz-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.badge {
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 10px 14px;
}

.admin-action-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

/* ===== QUESTION ===== */
.question-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
}

.question-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #0f172a;
}

/* ===== ANSWER ===== */
.form-check {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  background: #fff;
}

.form-check:hover {
  border-color: #2563eb;
  background: #f8fbff;
}

.form-check-input {
  margin-top: 6px;
  cursor: pointer;
}

.form-check-label {
  width: 100%;
  cursor: pointer;
  padding-left: 6px;
  font-weight: 500;
}

/* ===== BUTTON ===== */
#btn-submit {
  background: #2563eb;
  border: none;
  border-radius: 12px;
  padding: 14px 34px;
  font-weight: 700;
  transition: 0.2s;
}

#btn-submit:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ===== RESULT MODAL ===== */
.modal-content {
  border-radius: 20px;
}

.modal-header {
  background: #2563eb !important;
}

#result-body h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
}

#result-body p {
  color: #64748b;
}

/* ===== LOADING ===== */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  #topic-container h1 {
    font-size: 1.8rem;
  }

  .card-body {
    padding: 20px !important;
  }

  #btn-submit {
    width: 100%;
  }
}
.card {
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08)
};