:root {
  --app-primary: #1f4e79;
  --app-primary-dark: #163a5a;
  --app-accent: #c8962e;
  --app-bg: #f4f6f9;
}
body { background: var(--app-bg); font-size: .925rem; }
.app-nav { background: linear-gradient(90deg, var(--app-primary-dark), var(--app-primary)); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.app-nav .form-select { min-width: 190px; }
.app-sidebar { width: 236px; flex-shrink: 0; min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid #e3e7ee; }
@media (min-width: 992px) { .app-sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.app-sidebar .nav-link { color: #3b4655; border-radius: .4rem; padding: .5rem .75rem; margin-bottom: 2px; }
.app-sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.app-sidebar .nav-link:hover { background: #eef3f9; }
.app-sidebar .nav-link.active { background: var(--app-primary); color: #fff; }
.sidebar-heading { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8a94a3; margin: 1rem .75rem .35rem; }
.app-main { min-width: 0; }
.page-title { font-weight: 600; color: #1d2b3a; }
.card { border: 1px solid #e3e7ee; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--app-primary); line-height: 1.1; }
.stat-card .stat-label { color: #6b7684; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table > :not(caption) > * > * { padding: .5rem .6rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #5a6575; background: #f8fafc; white-space: nowrap; }
.btn-primary { background: var(--app-primary); border-color: var(--app-primary); }
.btn-primary:hover { background: var(--app-primary-dark); border-color: var(--app-primary-dark); }
.guest-body { background: radial-gradient(circle at top, #e7eef7, #f4f6f9 60%); min-height: 100vh; }
.login-card { max-width: 420px; }
.timeline { list-style: none; padding-left: 0; }
.timeline li { border-left: 2px solid #d6dde6; padding: 0 0 .8rem 1rem; position: relative; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--app-primary); position: absolute; left: -6px; top: .3rem; }
.stepper { display: flex; gap: .25rem; flex-wrap: wrap; }
.stepper .step { flex: 1 1 120px; padding: .45rem .6rem; border-radius: .4rem; background: #eef1f5; font-size: .8rem; color: #6b7684; }
.stepper .step.done { background: #d8f0e2; color: #146c43; }
.stepper .step.current { background: #dbe8f6; color: var(--app-primary-dark); font-weight: 600; }
.stepper .step.bad { background: #fde2e1; color: #a52824; }

/* Editor soal */
.rte-toolbar { border: 1px solid #ced4da; border-bottom: 0; border-radius: .375rem .375rem 0 0; background: #f8f9fa; padding: 2px 4px; }
.rte-toolbar button { border: 0; background: none; padding: 2px 7px; border-radius: 3px; }
.rte-toolbar button:hover { background: #e2e6ea; }
.rte { border: 1px solid #ced4da; border-radius: 0 0 .375rem .375rem; min-height: 70px; padding: .5rem .75rem; background: #fff; }
.rte:focus { outline: 2px solid rgba(31,78,121,.35); }
.rte table { border-collapse: collapse; }
.rte table td, .rte table th { border: 1px solid #999; padding: 2px 6px; min-width: 40px; }
.rte img { max-width: 100%; }
.butir-card { border-left: 4px solid var(--app-accent); }
.bagian-card > .card-header { background: #f3f6fa; }
.preview-frame { width: 100%; height: 78vh; border: 1px solid #ccd3dc; background: #fff; border-radius: .375rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-cell { background: #fff; border: 1px solid #e3e7ee; min-height: 92px; padding: 4px; font-size: .75rem; border-radius: 4px; }
.cal-cell .d { font-weight: 600; color: #6b7684; }
.cal-cell.other { background: #f7f8fa; color: #aab; }
.cal-ev { background: #e4edf7; border-left: 3px solid var(--app-primary); padding: 1px 4px; margin-top: 2px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev.draf { border-left-color: #adb5bd; background: #f1f3f5; }
.text-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
