/* ===== Tambahan MTs DDI Lampu Satu di atas tema KidKinder (Bootstrap 4) ===== */
:root { --kk-primary:#17a2b8; --kk-dark:#00394f; --kk-soft:#e8f6f8; }
body.app-body { background:#f4f9fb; }
.navbar-brand { font-family:"Handlee",cursive; font-size:1.7rem !important; }
.navbar-brand i { font-size:2rem; }
.lh-1 { line-height:1.15; }
.avatar { width:38px; height:38px; border-radius:50%; background:var(--kk-primary); color:#fff; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center; font-size:.9rem; }

/* Sidebar */
.app-side { border-radius:14px; position:sticky; top:12px; }
.side-link { display:flex; align-items:center; padding:.7rem .9rem; border-radius:10px; color:var(--kk-dark);
  font-weight:700; text-decoration:none; transition:.15s; }
.side-link i { width:1.6rem; color:var(--kk-primary); }
.side-link:hover { background:var(--kk-soft); text-decoration:none; color:var(--kk-dark); }
.side-link.active { background:var(--kk-primary); color:#fff; }
.side-link.active i { color:#fff; }
.side-link.text-danger i { color:#dc3545; }

/* Kartu statistik */
.stat-card { border:0; border-top:4px solid var(--kk-primary) !important; border-radius:14px; }
.stat-card .stat-icon { width:56px; height:56px; border-radius:50%; background:var(--kk-soft); color:var(--kk-primary);
  display:flex; align-items:center; justify-content:center; font-size:1.5rem; flex:0 0 56px; }
.stat-card .stat-num { font-size:2rem; font-weight:800; color:var(--kk-dark); line-height:1; }
.stat-card.c2 { border-top-color:#ffc107 !important; } .stat-card.c2 .stat-icon { background:#fff8e1; color:#e0a800; }
.stat-card.c3 { border-top-color:#28a745 !important; } .stat-card.c3 .stat-icon { background:#e8f7ec; color:#28a745; }
.stat-card.c4 { border-top-color:#e83e8c !important; } .stat-card.c4 .stat-icon { background:#fdeaf3; color:#e83e8c; }

.card.app-card { border:0; border-radius:14px; box-shadow:0 2px 10px rgba(0,57,79,.07); }
.app-card .card-header { background:#fff; border-bottom:2px solid var(--kk-soft); font-weight:800; color:var(--kk-dark); border-radius:14px 14px 0 0; }
.table thead th { background:var(--kk-soft); color:var(--kk-dark); border-bottom:0; white-space:nowrap; }
.table td { vertical-align:middle; }
.btn { border-radius:8px; }
.badge-soft { background:var(--kk-soft); color:var(--kk-dark); }
.form-control, .custom-select { border-radius:8px; }
.required::after { content:" *"; color:#dc3545; }

/* Toast */
.toast-area { position:fixed; top:14px; right:14px; z-index:2000; width:320px; max-width:calc(100% - 28px); }
.toast-area .alert { box-shadow:0 6px 18px rgba(0,0,0,.18); border:0; border-radius:10px; margin-bottom:8px; }

.app-footer { margin-top:2rem; }

/* ===== Login ===== */
body.login-body { background:var(--kk-primary) url("../img/header.png") no-repeat right bottom / 38% auto; min-height:100vh; }
.login-card { border:0; border-radius:18px; box-shadow:0 18px 40px rgba(0,57,79,.35); }
.login-brand { font-family:"Handlee",cursive; font-size:2.1rem; line-height:1.05; }
.login-brand small { display:block; font-family:"Nunito",sans-serif; font-size:.8rem; letter-spacing:.5px; color:#ffeaa7; }
@media (max-width:991px){ body.login-body { background-image:none; } }

/* ===== Beranda publik ===== */
.hero-stat { background:rgba(255,255,255,.14); border-radius:14px; }
.feature-box { transition:.2s; }
.feature-box:hover { transform:translateY(-4px); }
.teacher-card .avatar-lg { width:96px; height:96px; border-radius:50%; background:var(--kk-soft); color:var(--kk-primary);
  display:flex; align-items:center; justify-content:center; font-size:2.4rem; margin:0 auto 12px; }
.news-card .news-date { font-size:.8rem; }
