:root {
  --cbt-s-green: #0f5f4d;
  --cbt-s-green-dark: #0b3f35;
  --cbt-s-bg: #f5f8f6;
  --cbt-s-card: #ffffff;
  --cbt-s-text: #17231f;
  --cbt-s-muted: #6c7a74;
  --cbt-s-border: rgba(23, 35, 31, .10);
  --cbt-s-shadow: 0 12px 32px rgba(13, 55, 45, .08);
}

body.cbt-mobile-clean {
  background: var(--cbt-s-bg) !important;
  color: var(--cbt-s-text);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.cbt-mobile-clean a { text-decoration: none !important; }
body.cbt-mobile-clean .card {
  border: 1px solid var(--cbt-s-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--cbt-s-shadow) !important;
  overflow: hidden;
}
body.cbt-mobile-clean .btn-primary,
body.cbt-mobile-clean .bg-primary {
  background-color: var(--cbt-s-green) !important;
  border-color: var(--cbt-s-green) !important;
}
body.cbt-mobile-clean .text-primary { color: var(--cbt-s-green) !important; }
body.cbt-mobile-clean .form-control,
body.cbt-mobile-clean .form-select {
  border-radius: 14px !important;
  border-color: var(--cbt-s-border) !important;
}
body.cbt-mobile-clean .alert {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

/* Header mobile */
.cbt-mobile-header {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--cbt-s-border);
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
.cbt-mobile-topbar { min-height: 58px; }
.cbt-mobile-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--cbt-s-text) !important;
  font-weight: 850;
}
.cbt-mobile-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--cbt-s-border);
  overflow: hidden;
}
.cbt-mobile-brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.cbt-mobile-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58vw;
  font-size: 14px;
  line-height: 1.1;
}
.cbt-mobile-logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cbt-s-muted) !important;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f0f5f2;
}

/* Login siswa */
.cbt-mobile-login #app {
  min-height: 100vh;
}
.cbt-student-login {
  min-height: 100vh;
  padding: 30px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 12%, rgba(15, 95, 77, .12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(11, 63, 53, .09), transparent 28%),
    var(--cbt-s-bg);
}
.cbt-student-login-card {
  width: min(100%, 420px);
  padding: 30px 26px;
  border-radius: 28px;
  border: 1px solid var(--cbt-s-border);
  background: rgba(255,255,255,.94);
  box-shadow: 0 28px 80px rgba(8, 60, 48, .14);
}
.cbt-student-login-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 26px;
}
.cbt-student-login-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--cbt-s-border);
  overflow: hidden;
}
.cbt-student-login-logo img { width: 50px; height: 50px; object-fit: contain; }
.cbt-student-login-logo span { font-weight: 900; color: var(--cbt-s-green-dark); }
.cbt-student-login-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--cbt-s-text);
}
.cbt-student-login-brand p {
  margin: 5px 0 0;
  color: var(--cbt-s-muted);
  font-size: 13px;
  font-weight: 700;
}
.cbt-student-login-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--cbt-s-text);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
}
.cbt-student-input {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  min-height: 56px;
  border: 1px solid rgba(15, 95, 77, .16);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.cbt-student-input > i {
  width: 48px;
  text-align: center;
  color: var(--cbt-s-green);
  font-size: 18px;
}
.cbt-student-input input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  height: 54px;
  background: transparent;
  color: var(--cbt-s-text);
  font-size: 15px;
  font-weight: 650;
}
.cbt-student-input input::placeholder { color: #9aa7a1; }
.cbt-student-input button {
  width: 46px;
  height: 46px;
  margin-right: 5px;
  border: 0;
  border-radius: 15px;
  background: #eef6f1;
  color: var(--cbt-s-green-dark);
}
.cbt-student-login-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  border: 0;
  border-radius: 18px;
  background: var(--cbt-s-green-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.cbt-student-login-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* Dashboard siswa */
.cbt-mobile-dashboard-page { padding-bottom: 30px; }
.cbt-student-profile-card .card-body { padding: 18px !important; }
.cbt-student-profile-card .user-profile img {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--cbt-s-border);
}
.cbt-student-profile-card h5 {
  color: var(--cbt-s-text);
  font-weight: 900;
  letter-spacing: -.02em;
}
.cbt-student-profile-card p {
  color: var(--cbt-s-muted);
  font-weight: 700;
}
.cbt-student-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cbt-student-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--cbt-s-green-dark);
  font-size: 12px;
  font-weight: 800;
}
.cbt-mobile-section-title {
  margin: 8px 2px 10px;
  color: var(--cbt-s-text);
  font-size: 14px;
  font-weight: 900;
}
.cbt-mobile-dashboard .feature-card .card {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #eef6f1 !important;
  box-shadow: none !important;
}
.cbt-mobile-dashboard .feature-card .card img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}
.cbt-mobile-dashboard .feature-card p {
  margin-top: 8px;
  color: var(--cbt-s-text);
  font-size: 12px;
  font-weight: 800;
}
.cbt-mobile-dashboard .single-hero-slide {
  border-radius: 20px !important;
  min-height: 138px;
  background-color: var(--cbt-s-green-dark) !important;
}
.cbt-mobile-dashboard .single-hero-slide::after { opacity: .15 !important; }
.cbt-mobile-simple-card .card-body {
  color: var(--cbt-s-text);
  font-weight: 800;
}

/* Halaman ujian */
body.cbt-mobile-exam {
  background: #f7faf8 !important;
}
body.cbt-mobile-exam #app {
  min-height: 100vh;
}
.cbt-exam-header {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid var(--cbt-s-border);
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
.cbt-exam-header .header-content { min-height: 58px; }
.cbt-exam-time h6 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--cbt-s-green-dark);
  font-weight: 900;
  letter-spacing: .01em;
}
.cbt-exam-refresh a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--cbt-s-green-dark) !important;
  border: 1px solid var(--cbt-s-border);
}
body.cbt-mobile-exam .page-content-wrapper {
  padding-top: 70px !important;
  padding-bottom: 96px !important;
}
body.cbt-mobile-exam .page-content-wrapper > .container {
  padding-left: 14px;
  padding-right: 14px;
}
body.cbt-mobile-exam .card {
  border-radius: 20px !important;
  border: 1px solid var(--cbt-s-border) !important;
  box-shadow: 0 9px 26px rgba(12, 45, 37, .07) !important;
}
body.cbt-mobile-exam .card-body { padding: 16px !important; }
body.cbt-mobile-exam .divider { opacity: .25; }
body.cbt-mobile-exam .btn-round,
body.cbt-mobile-exam .btn-outline-info {
  border-color: rgba(15, 95, 77, .18) !important;
  color: var(--cbt-s-green-dark) !important;
  background: #eef6f1 !important;
  font-weight: 850;
}
body.cbt-mobile-exam .unselectable {
  color: var(--cbt-s-text);
  font-size: 15px;
  line-height: 1.65;
}
body.cbt-mobile-exam .unselectable img,
body.cbt-mobile-exam .questions-body img,
body.cbt-mobile-exam .options-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}
body.cbt-mobile-exam .form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding-left: 0;
}
body.cbt-mobile-exam .form-check-input {
  position: static;
  width: 22px;
  height: 22px;
  margin: 2px 0 0 0;
  flex: 0 0 22px;
  border-color: rgba(15, 95, 77, .32);
}
body.cbt-mobile-exam .form-check-input:checked {
  background-color: var(--cbt-s-green) !important;
  border-color: var(--cbt-s-green) !important;
}
body.cbt-mobile-exam .form-check-label {
  flex: 1;
  color: var(--cbt-s-text);
  line-height: 1.6;
  font-weight: 650;
}
body.cbt-mobile-exam textarea.form-control {
  min-height: 150px;
  border-radius: 18px !important;
}
.cbt-exam-nav {
  height: auto !important;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95) !important;
  border-top: 1px solid var(--cbt-s-border);
  box-shadow: 0 -12px 28px rgba(12,45,37,.08) !important;
  backdrop-filter: blur(14px);
}
.cbt-exam-nav .footer-nav {
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}
.cbt-exam-nav ul {
  margin: 0;
  gap: 8px;
}
.cbt-exam-nav li {
  flex: 1 1 0;
  list-style: none;
}
.cbt-exam-nav a {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid var(--cbt-s-border);
  background: #fff;
  color: var(--cbt-s-text) !important;
  font-size: 12px;
  font-weight: 900;
}
.cbt-exam-nav a i {
  font-size: 17px;
}
.cbt-exam-nav #finish-soal {
  background: var(--cbt-s-green-dark) !important;
  color: #fff !important;
  border-color: var(--cbt-s-green-dark) !important;
}
.cbt-exam-question-list {
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--cbt-s-border);
  min-height: 38vh;
}
.cbt-exam-question-list .offcanvas-header {
  border-bottom: 1px solid var(--cbt-s-border);
}
.cbt-exam-question-list .offcanvas-title {
  font-weight: 900;
  color: var(--cbt-s-text);
}
.cbt-exam-question-list .btn-circle {
  width: 42px;
  height: 42px;
  border-radius: 14px !important;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  border: 0 !important;
}
.cbt-exam-modal .modal-content,
.cbt-exam-shortcut {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0,0,0,.15);
}
.cbt-exam-modal .modal-header {
  border-bottom: 1px solid var(--cbt-s-border);
}
.cbt-exam-modal .modal-title,
.cbt-exam-shortcut h5 {
  font-weight: 900;
  color: var(--cbt-s-text);
}
.cbt-exam-shortcut li {
  list-style: none;
  margin-bottom: 10px;
  color: var(--cbt-s-text);
  font-size: 14px;
  font-weight: 700;
}
.cbt-exam-shortcut code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  margin-right: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #eef6f1;
  color: var(--cbt-s-green-dark);
  font-weight: 900;
}

@media (max-width: 390px) {
  .cbt-exam-nav a { font-size: 11px; gap: 5px; }
  .cbt-exam-nav a i { font-size: 15px; }
  .cbt-student-login-card { padding: 26px 22px; }
}
