#quiz {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
}
#quiz p {
  font-weight: bold;
}
.notification-exams {
  color: #000000;
  text-align: center;
  font-size: 26px;
}

/*QUIZZ LIST*/
/* Grid list */
.quiz-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Card */
.quiz-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.quiz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 0;
}

.quiz-card:hover::before {
  opacity: 0.05;
}

.quiz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Content */
.quiz-card > * {
  position: relative;
  z-index: 1;
}

.quiz-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.quiz-meta {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 6px;
}

/* Button */
.btn-start-quiz {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-start-quiz:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.btn-start-quiz:active {
  transform: scale(0.97);
}
.quiz-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin: 15px 0;
  border-radius: 10px;
  font-size: 15px;
  animation: fadeIn 0.4s ease;
}

.quiz-alert .icon {
  font-size: 22px;
}

/* Lỗi */
.quiz-alert-error {
  background: linear-gradient(135deg, #ffe6e6, #fff0f0);
  color: #b42318;
  border-left: 5px solid #e53935;
  text-align: center;
  font-size: 24px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.quiz-alert-error {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}
#quiz-wrapper {
  max-width: 800px;
  margin: 30px auto;
  font-family: Arial, sans-serif;
}

/* TIMER */
.quiz-timer {
  background: #fff3cd;
  color: #856404;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* CÂU HỎI */
.quiz-question {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.question-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ĐÁP ÁN */
.answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-item:hover {
  background: #f1f5ff;
  border-color: #4e73df;
}

.answer-item input[type="radio"] {
  transform: scale(1.2);
}

/* khi được chọn */
.answer-item input[type="radio"]:checked + span {
  font-weight: bold;
  color: #4e73df;
}

/* NÚT NỘP */
.btn-submit-quiz {
  display: block;
  margin: 30px auto 0;
  padding: 14px 40px;
  background: linear-gradient(135deg, #4e73df, #224abe);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(78, 115, 223, 0.4);
  transition: all 0.25s ease;
}

.btn-submit-quiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(78, 115, 223, 0.5);
}
.loading-quizz{
    text-align: center;
    font-size: 24px;
}