:root {
  --dusk-1: #0F2027;
  /* deep */
  --dusk-2: #2C5364;
  /* teal */
  --white: #ffffff;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --shadow: 0 8px 24px rgba(15, 32, 39, 0.08);
  --radius: 14px;
}

a {
  color: white;
}

/* Global */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #fafafa;
  color: #0f1720;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header gradient */
.site-header {
  background: linear-gradient(90deg, var(--dusk-1), var(--dusk-2));
  color: var(--white);
  padding: 28px 20px 120px;
  /* extra bottom for overlapping hero card */
  position: relative;
  overflow: visible;
}

/* Header inner row */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: transparent;
}

.brand-title {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

/* Top nav */
.top-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* Header auth section */
.header-auth {
  position: relative;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: .2s;
  font-family: 'Poppins', sans-serif;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.login-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 32, 39, 0.15);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: .3s;
  z-index: 1000;
}

.login-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .2s;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
}

.dropdown-item:hover {
  background: #f5f7fa;
}

.dropdown-item:first-child {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-item .icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.item-title {
  font-weight: 600;
  color: var(--dusk-1);
  font-size: 15px;
  margin-bottom: 2px;
}

.item-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Hero card overlapping header */
.hero-card {
  max-width: 1200px;
  margin: auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 5;
}

/* hero left */
.hero-left {
  flex: 1;
}

.hero-left h1 {
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--dusk-1);
}

.hero-left p {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* ctas */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.hero-ctas button {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(44, 83, 100, 0.08);
}

.hero-ctas button img.btn-icon {
  width: 18px;
  height: 18px;
}

.hero-ctas button {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: var(--white);
}

.hero-ctas button.alt {
  background: transparent;
  border: 1px solid rgba(15, 32, 39, 0.06);
  color: var(--dusk-1);
}

/* hero notes */
.hero-notes {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.note-pill {
  background: #f3f7f8;
  color: var(--dusk-1);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* hero illustration */
.hero-illustration img {
  width: 220px;
  height: auto;
  opacity: 0.95;
}

/* main page container */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* sections */
section {
  margin-bottom: 28px;
}

/* How it works */
.how h2,
.about h2,
.who h2,
.contact-section h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dusk-1);
}

.how-cards {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}

.how-cards .card {
  flex: 1;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.big-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

/* Featured Contests */
.featured-contests {
  margin-bottom: 28px;
}

.featured-contests h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dusk-1);
  margin-bottom: 20px;
}

.contests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.contest-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: .3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.contest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 32, 39, 0.15);
  border-color: var(--dusk-2);
}

.contest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.contest-card h3 {
  margin: 0;
  color: var(--dusk-1);
  font-size: 18px;
  flex: 1;
}

.contest-pin {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.contest-card-body {
  margin-bottom: 16px;
}

.contest-card-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.contest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  background: #f5f7fa;
  padding: 6px 12px;
  border-radius: 6px;
}

.contest-card-footer {
  display: flex;
  gap: 10px;
}

.contest-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s;
  font-family: 'Poppins', sans-serif;
}

.contest-btn.primary {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff;
}

.contest-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 83, 100, 0.3);
}

.no-contests {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* features */
.features {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.feature-block {
  flex: 1;
  background: linear-gradient(180deg, #ffffff, #fbfdfe);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.feature-block h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dusk-1);
}

.feature-block button {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--dusk-2);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.feature-block button.alt {
  background: transparent;
  border: 1px solid rgba(15, 32, 39, 0.06);
  color: var(--dusk-1);
}

/* about */
.about-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.about-image img {
  width: 320px;
  max-width: 100%;
  border-radius: 10px;
}

.about-text {
  flex: 1;
}

.stats {
  margin-top: 12px;
  color: var(--muted);
  list-style: none;
  padding: 0;
}

/* who */
.who {
  text-align: center;
  padding: 18px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* contact */
.contact-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form .field-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e6eef0;
  width: 100%;
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.contact-info {
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* footer */
.site-footer {
  background: linear-gradient(90deg, var(--dusk-1), var(--dusk-2));
  color: var(--white);
  padding: 18px 20px;
  margin-top: 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

/* icons */
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.btn-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* responsive */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .top-nav {
    display: none;
  }

  /* hide nav on smaller screens for simplicity (can add burger later) */
  .hero-card {
    flex-direction: column;
    margin-top: -40px;
  }

  .how-cards {
    flex-direction: column;
  }

  .features {
    flex-direction: column;
  }

  .about-inner {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .contact-form .field-row {
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fafafa;
  color: #0f1720
}

.site-header {
  background: linear-gradient(90deg, var(--dusk-1), var(--dusk-2));
  color: #fff;
  padding: 28px 20px 120px;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px
}

.brand-title {
  font-size: 20px;
  font-weight: 700
}

.brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85)
}

.top-nav {
  display: flex;
  gap: 14px
}

.top-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none
}

.hero-card {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 30px;
  box-shadow: var(--shadow);
  position: relative;
  top: 30px
}

.hero-left h1 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--dusk-1)
}

.hero-left p {
  color: var(--muted);
  margin: 0 0 16px
}

.hero-ctas button {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center
}

.hero-ctas button {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff
}

.hero-ctas button.alt {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--dusk-1)
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: .2s
}

.teachermodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: .2s
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto
}
.teachermodal-backdrop.open {
  opacity: 1;
  pointer-events: auto
}

.modal {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow)
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted)
}

.field {
  margin-bottom: 12px
}

.field input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  font-size: 14px
}

.otp-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px
}

.row {
  display: flex;
  gap: 10px
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600
}

.btn.primary {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff;
  border: none
}

.btn.ghost {
  background: transparent;
  border: 1px solid #d0d0d0;
  color: var(--dusk-1)
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: .2s;
  z-index: 2000
}

.toast.show {
  opacity: 1;
  transform: translateY(0)
}

/* TEACHER DASHBOARD STYLES */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 120px);
  max-width: 1400px;
  margin: 20px auto;
  gap: 20px;
  padding: 0 20px;
}

.dashboard-sidebar {
  width: 240px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  font-weight: 500;
  transition: .2s;
}

.sidebar-item:hover {
  background: #f5f5f5;
}

.sidebar-item.active {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff;
}

.dashboard-content {
  flex: 1;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dusk-1);
}

.quiz-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--dusk-1);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.field textarea {
  resize: vertical;
}

.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.field-row .field {
  flex: 1;
  margin-bottom: 0;
}

.pin-display {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 3px;
}

.questions-container {
  margin-top: 24px;
  border-top: 2px solid #f0f0f0;
  padding-top: 24px;
}

.questions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.questions-header h3 {
  margin: 0;
  color: var(--dusk-1);
}

.btn-add-question {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: .2s;
}

.btn-add-question:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 83, 100, 0.3);
}

.no-questions {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-style: italic;
}

.question-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.question-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.question-number {
  background: var(--dusk-1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.question-type-badge {
  background: #e0f2f1;
  color: #00695c;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.question-points {
  background: #fff3e0;
  color: #e65100;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
}

.question-text {
  color: var(--dusk-1);
  margin-bottom: 10px;
  line-height: 1.5;
}

.question-options {
  margin-bottom: 10px;
}

.option {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}

.option.correct {
  background: #d4edda;
  border-color: #28a745;
  font-weight: 600;
}

.question-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-small {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: .2s;
}

.btn-small:hover {
  background: #f5f5f5;
}

.btn-small.danger {
  color: #e74c3c;
  border-color: #e74c3c;
}

.btn-small.danger:hover {
  background: #fee;
}

.btn-small.featured-btn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-small.featured-btn:hover {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  transform: translateY(-1px);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
}

.large-modal {
  max-width: 600px;
}

.options-container {
  margin: 16px 0;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.option-item input[type="text"] {
  flex: 1;
}

.tf-options {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
}

.radio-label:hover {
  background: #f5f5f5;
}

.radio-label input {
  margin: 0;
  width: auto;
}

.teacher-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: .2s;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
}

.quizzes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.no-quizzes {
  text-align: center;
  padding: 60px;
  color: var(--muted);
  font-size: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.quiz-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: .2s;
  position: relative;
}

.quiz-card.featured {
  border: 2px solid #fbbf24;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.quiz-card.featured::before {
  content: '⭐';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 24px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 32, 39, 0.12);
}

.quiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.quiz-card-header h3 {
  margin: 0;
  color: var(--dusk-1);
  font-size: 18px;
}

.quiz-pin {
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.quiz-card-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.quiz-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.quiz-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* QUIZ ATTEMPT STYLES */
.quiz-header {
  padding: 20px 20px;
}

.quiz-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.student-name {
  color: #fff;
  font-weight: 600;
}

.timer-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.quiz-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
}

.quiz-progress {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dusk-2), #3aa0a9);
  transition: width 0.3s;
}

.progress-text {
  text-align: center;
  font-weight: 600;
  color: var(--dusk-1);
}

.question-card-main {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.question-header-main {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.question-number-main {
  background: var(--dusk-1);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.question-text-main {
  font-size: 18px;
  color: var(--dusk-1);
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 500;
}

.answer-section {
  margin-top: 20px;
}

.options-list-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s;
}

.option-label:hover {
  background: #f9fafb;
  border-color: var(--dusk-2);
}

.option-label input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.option-label input:checked + .option-text {
  font-weight: 600;
}

.option-label:has(input:checked) {
  background: #e8f4f8;
  border-color: var(--dusk-2);
}

.option-text {
  flex: 1;
  font-size: 15px;
}

.tf-options-main {
  display: flex;
  gap: 16px;
}

.tf-options-main .option-label {
  flex: 1;
  justify-content: center;
}

.short-answer-input {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
}

.short-answer-input:focus {
  outline: none;
  border-color: var(--dusk-2);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quiz-navigation button {
  padding: 12px 24px;
  font-size: 15px;
}

.results-summary {
  text-align: center;
  padding: 30px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 24px;
}

.results-summary h2 {
  margin: 0 0 20px;
  color: var(--dusk-1);
}

.score-display {
  margin: 20px 0;
}

.score-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.score-circle.pass {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.score-circle.fail {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.results-details h3 {
  margin: 0 0 16px;
  color: var(--dusk-1);
}

.result-item {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.result-item.correct {
  border-color: #28a745;
  background: #d4edda;
}

.result-item.incorrect {
  border-color: #e74c3c;
  background: #f8d7da;
}

.result-item.review {
  border-color: #ffc107;
  background: #fff3cd;
}

.result-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.result-number {
  background: var(--dusk-1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.result-status {
  font-size: 20px;
}

.result-points {
  margin-left: auto;
  font-weight: 700;
  color: var(--dusk-1);
}

.result-question {
  color: var(--dusk-1);
  line-height: 1.5;
}

.submit-summary {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.submit-summary p {
  margin: 8px 0;
}

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
  }
  
  .field-row {
    flex-direction: column;
  }
  
  .quizzes-grid {
    grid-template-columns: 1fr;
  }
  
  .quiz-navigation {
    flex-direction: column;
  }
}

/* Quiz Created Modal Styles */
.quiz-info-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #6b7280;
  font-weight: 500;
}

.info-value {
  color: #1f2937;
  font-weight: 600;
}

.pin-highlight {
  background: linear-gradient(135deg, var(--dusk-2), #3aa0a9);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 20px;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.share-message {
  text-align: center;
  color: #6b7280;
  margin: 15px 0;
  font-size: 15px;
}

/* Scoreboard Styles */
.scoreboard-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.scoreboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.scoreboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.scoreboard-header h3 {
  color: var(--dusk-2);
  margin: 0 0 8px 0;
  font-size: 20px;
}

.quiz-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
}

.quiz-meta strong {
  color: var(--dusk-2);
  font-weight: 700;
}

.no-attempts {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.no-attempts p {
  font-size: 16px;
  margin: 0;
}

/* Attempts List */
.attempts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.attempt-card {
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
}

.attempt-card:hover {
  border-color: var(--dusk-2);
  box-shadow: 0 4px 12px rgba(44, 83, 100, 0.1);
}

.attempt-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.attempt-summary:hover {
  background: #f3f4f6;
}

.attempt-student-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 250px;
}

.student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dusk-2), #3aa0a9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.attempt-student-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
}

.attempt-student-email {
  color: #6b7280;
  font-size: 14px;
}

.attempt-stats {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: flex-start;
}

.stat-item {
  text-align: center;
}

.stat-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.expand-icon {
  font-size: 20px;
  color: var(--dusk-2);
  transition: transform 0.3s;
  margin-left: auto;
}

/* Attempt Details */
.attempt-details {
  padding: 24px;
  background: white;
  border-top: 2px solid #e5e7eb;
}

.attempt-details h4 {
  color: var(--dusk-2);
  margin: 0 0 20px 0;
  font-size: 18px;
}

.question-result {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
}

.question-result.correct {
  border-color: #10b981;
  background: #ecfdf5;
}

.question-result.incorrect {
  border-color: #ef4444;
  background: #fef2f2;
}

.question-result.review {
  border-color: #f59e0b;
  background: #fffbeb;
}

.question-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.question-number {
  background: var(--dusk-2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.question-status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.question-result.correct .question-status-badge {
  background: #d1fae5;
  color: #065f46;
}

.question-result.incorrect .question-status-badge {
  background: #fee2e2;
  color: #991b1b;
}

.question-result.review .question-status-badge {
  background: #fef3c7;
  color: #92400e;
}

.question-points {
  margin-left: auto;
  font-weight: 700;
  color: #4b5563;
}

.question-text {
  font-size: 16px;
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.answer-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.student-answer,
.correct-answer-display,
.review-note {
  padding: 12px;
  border-radius: 8px;
  background: white;
}

.student-answer strong,
.correct-answer-display strong,
.review-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
}

.answer-value {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid;
}

.answer-value.correct-answer {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.answer-value.wrong-answer {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.review-note {
  grid-column: 1 / -1;
  background: #fffbeb;
  border: 2px solid #f59e0b;
  color: #92400e;
}

.scoreboard-table {
  overflow-x: auto;
}

.scoreboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.scoreboard-table thead {
  background: #f9fafb;
}

.scoreboard-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #4b5563;
  font-size: 14px;
  border-bottom: 2px solid #e5e7eb;
}

.scoreboard-table td {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  font-size: 14px;
}

.scoreboard-table tbody tr:hover {
  background: #f9fafb;
}

.score-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.score-badge.pass {
  background: #d1fae5;
  color: #065f46;
}

.score-badge.average {
  background: #fef3c7;
  color: #92400e;
}

.score-badge.fail {
  background: #fee2e2;
  color: #991b1b;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #4b5563;
  margin-bottom: 12px;
}

.empty-state p {
  color: #9ca3af;
  margin-bottom: 24px;
}

/* Student Results Styles */
.student-results-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.result-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.result-header h3 {
  color: var(--dusk-2);
  margin: 0 0 8px 0;
  font-size: 22px;
}

.result-date {
  color: #6b7280;
  font-size: 14px;
}

.result-score-display {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score-circle.pass {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.score-circle.average {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.score-circle.fail {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.score-number {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
}

.score-label {
  font-size: 14px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.stat-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e5e7eb;
}

.stat-box .stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--dusk-2);
  margin-bottom: 8px;
}

.stat-box .stat-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.result-details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
}

.result-details h4 {
  color: var(--dusk-2);
  margin: 0 0 20px 0;
  font-size: 18px;
}