/* ============================================================
   assets/css/style.css — Aksara E-Exam
   Desain sesuai mockup UI/UX
   ============================================================ */

:root {
  --navy:         #0f2044;
  --navy-mid:     #1a3260;
  --blue:         #1e6fd9;
  --blue-light:   #3b8fe8;
  --orange:       #f47c20;
  --green:        #27ae60;
  --red:          #e74c3c;
  --bg:           #f0f4fb;
  --border:       #dce4f0;
  --text:         #1a2540;
  --text2:        #4a5878;
  --text3:        #8a95b0;
  --sidebar-w:    260px;
  --shadow:       0 4px 24px rgba(15,32,68,0.10);
  --radius:       14px;
  --radius-sm:    8px;
  --font:         'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--text); }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--navy);
  position: fixed; top: 0; left: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.sidebar-logo-text { font-size: 17px; font-weight: 800; color: white; line-height: 1.2; }
.sidebar-logo-sub  { font-size: 10px; color: rgba(255,255,255,0.4); }
.sidebar-nav { padding: 14px 10px; flex: 1; }
.nav-section-label {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 12px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.nav-item:hover  { background: rgba(255,255,255,0.08); color: white; }
.nav-item.active { background: var(--blue); color: white; font-weight: 600; }
.nav-item i      { font-size: 17px; }
.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.user-info   { flex: 1; min-width: 0; }
.user-name   { font-size: 12.5px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role   { font-size: 10.5px; color: rgba(255,255,255,0.4); }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: 260px; min-height: 100vh; display: flex; flex-direction: column; }

/* ===== TOPBAR ===== */
.topbar {
  background: white;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title    { font-size: 20px; font-weight: 700; color: var(--navy); }
.topbar-subtitle { font-size: 12.5px; color: var(--text3); margin-top: 1px; }

/* ===== CONTENT AREA ===== */
.content-area { padding: 28px 32px; flex: 1; }

/* ===== STAT CARDS ===== */
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-label { font-size: 11.5px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 800; line-height: 1; }
.stat-bg-blue   { background: linear-gradient(135deg, var(--blue),   #4a9ff5); color: white; border: none; }
.stat-bg-orange { background: linear-gradient(135deg, var(--orange),  #ff9a45); color: white; border: none; }
.stat-bg-green  { background: linear-gradient(135deg, var(--green),   #2ecc71); color: white; border: none; }
.stat-bg-blue .stat-label, .stat-bg-orange .stat-label, .stat-bg-green .stat-label { color: rgba(255,255,255,0.7); }

/* ===== CARDS ===== */
.card { background: white; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card-header-custom {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}

/* ===== BLOOM BADGES ===== */
.badge-c1 { background: #dbeafe; color: #1e40af; }
.badge-c2 { background: #d1fae5; color: #065f46; }
.badge-c3 { background: #fef3c7; color: #78350f; }
.badge-c4 { background: #ffedd5; color: #9a3412; }
.badge-c5 { background: #fce7f3; color: #9d174d; }
.badge-c6 { background: #ede9fe; color: #5b21b6; }

/* ===== BLOOM BARS ===== */
.bloom-bar-row   { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 8px; }
.bloom-bar-label { width: 130px; flex-shrink: 0; }
.bloom-bar-track { flex: 1; height: 10px; background: #e8eef8; border-radius: 5px; overflow: hidden; }
.bloom-bar-fill  { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.bloom-bar-count { width: 36px; text-align: right; color: var(--text3); font-size: 11.5px; font-weight: 600; }

/* ===== KNN RESULT ===== */
.knn-result-box {
  background: linear-gradient(135deg, #e8f4fd, #d4eaf9);
  border: 1.5px solid #b3d4ef;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.knn-level    { font-size: 22px; font-weight: 800; color: var(--blue); }
.knn-progress { height: 8px; background: #c8dff0; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.knn-progress-fill { height: 100%; background: linear-gradient(to right, var(--blue), var(--blue-light)); border-radius: 4px; transition: width 0.5s; }

/* ===== FORM INPUTS ===== */
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,111,217,0.12);
}

/* ===== BUTTONS ===== */
.btn-navy   { background: var(--navy);   color: white; border: none; }
.btn-navy:hover { background: var(--navy-mid); color: white; }

/* ===== REMEDIAL CARD ===== */
.remedial-card {
  background: linear-gradient(135deg, var(--orange), #ff9a45);
  border-radius: var(--radius); padding: 20px 22px; color: white;
}
.remedial-item {
  background: rgba(255,255,255,0.18); border-radius: 10px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: background 0.2s;
}
.remedial-item:hover { background: rgba(255,255,255,0.28); }

/* ===== UJIAN TIMER ===== */
.timer-display {
  font-size: 26px; font-weight: 800;
  letter-spacing: 2px; color: #ff9a45; font-family: monospace;
}
.timer-warn { animation: pulse 1s infinite; color: #ff4444 !important; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* ===== SOAL NAV ===== */
.soal-nav-btn {
  aspect-ratio: 1; border-radius: 6px;
  border: 1.5px solid var(--border);
  background: white; font-size: 12px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text2);
}
.soal-nav-btn.answered { background: var(--blue);   border-color: var(--blue);   color: white; }
.soal-nav-btn.current  { border-color: var(--orange); color: var(--orange); background: #fff8f0; }
.soal-nav-btn.ragu     { background: var(--orange); border-color: var(--orange); color: white; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #223a72 50%, #1e4a8c 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,111,217,0.25) 0%, transparent 70%);
  top: -150px; right: -150px; border-radius: 50%;
}
.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 24px; padding: 48px 44px; width: 420px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
  position: relative; z-index: 1;
}
.login-accent {
  width: 5px; height: 52px;
  background: linear-gradient(to bottom, var(--orange), var(--blue));
  border-radius: 3px;
}

/* ===== UTILITIES ===== */
.text-navy  { color: var(--navy) !important; }
.text-blue  { color: var(--blue) !important; }
.text-muted2{ color: var(--text3) !important; }
.fw-800     { font-weight: 800 !important; }
.rounded-lg { border-radius: var(--radius) !important; }