:root {
  --brand: #0d6efd;
  --soft: #f6f8fb;
  --card-radius: 18px;
  --border-soft: rgba(16, 24, 40, 0.06);
  --border-medium: rgba(16, 24, 40, 0.08);
}

body {
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 10%, #eef4ff, transparent),
    radial-gradient(900px 500px at 90% 20%, #f3f0ff, transparent),
    var(--soft);
  min-height: 100vh;
}

.page-wrap {
  padding: 28px 0 60px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 999px;
  color: #0b5ed7;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.12);
}

.brand-dot--plain {
  box-shadow: none;
}

.main-card {
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: 0 12px 35px rgba(16, 24, 40, 0.1);
  overflow: hidden;
}

.card-header-soft {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(111, 66, 193, 0.1));
  border-bottom: 1px solid var(--border-soft);
}

.section {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
}

.section-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0;
}

.section-sub {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.form-label {
  font-weight: 700;
}

.form-control,
.form-select {
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  border-color: rgba(16, 24, 40, 0.14);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.question-card {
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.question-text {
  font-weight: 800;
  margin-bottom: 10px;
}

.btn-check + .btn {
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  border-color: rgba(16, 24, 40, 0.14);
}

.btn-rating {
  min-width: 48px;
  font-weight: 800;
}

.rating-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
}

.rating-grid .btn {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .btn-rating {
    padding: 0.55rem 0.6rem;
    min-width: 44px;
  }

  .question-card {
    padding: 12px;
  }
}

.sticky-actions {
  position: sticky;
  bottom: 16px;
  z-index: 10;
}

.actions-bar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
  padding: 12px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
}

.progress-bar {
  border-radius: 999px;
}

.small-hint {
  color: #6c757d;
  font-size: 0.85rem;
}

.teacher-item {
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: 0.15s ease;
  background: #fff;
}

.teacher-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.08);
  border-color: rgba(13, 110, 253, 0.25);
}

.teacher-item .name {
  font-weight: 800;
}

.teacher-item .meta {
  color: #6c757d;
  font-size: 0.85rem;
}

.gate {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.gate.is-open {
  display: flex;
}

.gate-card {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.gate-head {
  padding: 18px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(111, 66, 193, 0.1));
  border-bottom: 1px solid var(--border-soft);
}

.gate-body {
  padding: 18px;
}

.gate-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
}

.remark-textarea {
  min-height: 110px;
  resize: vertical;
}

.breadcrumb-soft {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 10px 12px;
}

.crumb-link {
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 800;
  color: #0b5ed7;
}

.breadcrumb-separator {
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.modal-rounded {
  border-radius: 16px;
}