:root{--bg:#07182e;--panel:#0d223d;--panel2:#112a4b;--line:rgba(255,255,255,.08);--text:#eaf2ff;--muted:#9fb3cc;--blue:#3b82f6;--cyan:#22d3ee;--green:#22c55e;--yellow:#f59e0b;--red:#ef4444;--white:#fff;--shadow:0 18px 50px rgba(0,0,0,.22);--radius:20px}
*{box-sizing:border-box}html,body{margin:0;background:#eef4fb;color:#172033;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:radial-gradient(circle at 20% 10%,#174d85 0,#0b2747 35%,#07182e 72%)}
.auth-brand{padding:8vw 7vw;color:white;display:flex;flex-direction:column;justify-content:center}.brand-mark{width:74px;height:74px;border-radius:24px;background:linear-gradient(135deg,var(--blue),var(--cyan));display:grid;place-items:center;font-weight:900;font-size:24px;box-shadow:var(--shadow)}.auth-brand h1{font-size:clamp(36px,5vw,70px);line-height:1;margin:28px 0 16px}.auth-brand p{max-width:620px;color:#c9d9ef;font-size:18px;line-height:1.7}.school-chip{display:inline-flex;gap:9px;align-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:10px 15px;width:max-content;color:#dceaff}
.auth-side{display:flex;align-items:center;justify-content:center;padding:34px}.auth-card{width:min(470px,100%);background:white;border-radius:28px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.28)}.auth-card h2{margin:0 0 6px;font-size:28px}.auth-card p{margin:0 0 24px;color:#6b7280}.field{display:grid;gap:7px;margin-bottom:15px}.field label{font-size:13px;font-weight:700;color:#34415a}.input,.select,.textarea{width:100%;border:1px solid #d9e2ef;border-radius:13px;padding:12px 13px;background:#fff;outline:none}.input:focus,.select:focus,.textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(59,130,246,.12)}.btn{border:0;border-radius:13px;padding:11px 15px;font-weight:800}.btn-primary{background:linear-gradient(135deg,#2563eb,#0891b2);color:white}.btn-soft{background:#edf4ff;color:#1e40af}.btn-danger{background:#fee2e2;color:#b91c1c}.btn-dark{background:#0f2746;color:white}.btn-block{width:100%}.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.footer-note{margin-top:22px;text-align:center;color:#8794a6;font-size:12px}
.layout{min-height:100vh;display:grid;grid-template-columns:270px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#07182e,#0b2341);color:white;padding:22px 16px;border-right:1px solid rgba(255,255,255,.05)}.side-brand{display:flex;gap:12px;align-items:center;padding:6px 8px 20px}.side-logo{width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,var(--blue),var(--cyan));display:grid;place-items:center;font-weight:900}.side-brand strong{display:block}.side-brand small{color:#9db1c9}.nav-title{padding:12px 10px 8px;color:#728aa7;font-size:11px;font-weight:800;letter-spacing:.12em}.nav{display:grid;gap:6px}.nav button{border:0;background:transparent;color:#b9c8d9;text-align:left;padding:11px 12px;border-radius:12px;font-weight:700;display:flex;align-items:center;gap:10px}.nav button:hover,.nav button.active{background:linear-gradient(90deg,rgba(59,130,246,.22),rgba(34,211,238,.08));color:white}.nav-ico{width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.08);display:grid;place-items:center;font-size:11px}.side-footer{position:absolute;left:16px;right:16px;bottom:18px;padding:13px;border-radius:14px;background:rgba(255,255,255,.06);color:#9fb3cc;font-size:12px}
.main{min-width:0}.topbar{height:76px;background:white;border-bottom:1px solid #e7edf5;display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:5}.top-left{display:flex;gap:12px;align-items:center}.menu-toggle{display:none;border:0;background:#eef4fb;border-radius:10px;width:40px;height:40px}.page-title{font-weight:900;font-size:20px}.page-sub{color:#7a8aa0;font-size:12px}.user-pill{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e8f0ff;color:#1d4ed8;font-weight:900}.content{padding:24px;max-width:1600px;margin:auto}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:white;border:1px solid #e5edf6;border-radius:var(--radius);box-shadow:0 8px 30px rgba(23,32,51,.05)}.card-pad{padding:18px}.stat{padding:18px}.stat-top{display:flex;justify-content:space-between;align-items:center}.stat-icon{width:42px;height:42px;border-radius:14px;background:#eef6ff;display:grid;place-items:center;font-weight:900;color:#2563eb}.stat-value{font-size:30px;font-weight:900;margin:14px 0 3px}.muted{color:#7d8ba0}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.section-head h3{margin:0;font-size:18px}.table-wrap{overflow:auto;border-radius:16px;border:1px solid #e6edf5}table{width:100%;border-collapse:collapse;min-width:760px;background:white}th,td{padding:12px 13px;border-bottom:1px solid #edf1f6;text-align:left;font-size:13px}th{background:#f7faff;color:#53627a;font-size:12px}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}.b-green{background:#dcfce7;color:#166534}.b-yellow{background:#fef3c7;color:#92400e}.b-red{background:#fee2e2;color:#991b1b}.b-blue{background:#dbeafe;color:#1e40af}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.toolbar .input,.toolbar .select{width:auto;min-width:160px}.two{grid-template-columns:1.4fr 1fr}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-card{background:linear-gradient(135deg,#0f2746,#164d7c 64%,#0e7490);color:white;border:0}.hero-card .muted{color:#c6d6e8}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick button{border:1px solid #e2eaf4;background:#fff;border-radius:16px;padding:15px;text-align:left;font-weight:800}.quick small{display:block;color:#8a98aa;margin-top:4px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.modal-backdrop{position:fixed;inset:0;background:rgba(5,16,30,.55);display:grid;place-items:center;padding:18px;z-index:50}.modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:white;border-radius:24px;padding:22px;box-shadow:var(--shadow)}.toast{position:fixed;right:18px;bottom:18px;background:#0f2746;color:white;padding:13px 16px;border-radius:13px;box-shadow:var(--shadow);z-index:80}.gate-shell{min-height:100vh;background:radial-gradient(circle at top,#174d85,#07182e 68%);color:white;padding:24px}.gate-card{max-width:720px;margin:5vh auto;background:white;color:#162137;border-radius:28px;padding:28px}.gate-result{margin-top:18px;padding:18px;border-radius:18px;background:#f3f7fb;text-align:center}.gate-clock{font-size:48px;font-weight:900;letter-spacing:.04em}.empty{padding:34px;text-align:center;color:#8897aa}.mobile-only{display:none}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.two,.three{grid-template-columns:1fr}.quick{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.layout{grid-template-columns:1fr}.sidebar{position:fixed;left:-290px;width:270px;z-index:30;transition:.2s}.sidebar.open{left:0}.menu-toggle{display:grid;place-items:center}.content{padding:16px}.topbar{padding:0 16px}.stats{grid-template-columns:1fr 1fr}.auth-shell{grid-template-columns:1fr}.auth-brand{display:none}.form-grid{grid-template-columns:1fr}.mobile-only{display:block}}
@media(max-width:560px){.stats{grid-template-columns:1fr}.auth-actions{grid-template-columns:1fr}.quick{grid-template-columns:1fr}.user-pill .user-meta{display:none}}

/* =========================================================
   SIMAS KB - PLAYFUL PREMIUM EARLY CHILDHOOD THEME
   ========================================================= */

:root{
  --kb-bg:#fff9f2;
  --kb-surface:#ffffff;
  --kb-text:#314158;
  --kb-muted:#718096;
  --kb-sky:#6ec5e9;
  --kb-sky-soft:#eaf8fe;
  --kb-mint:#8fd8c7;
  --kb-mint-soft:#eaf9f5;
  --kb-yellow:#f6d675;
  --kb-yellow-soft:#fff8dd;
  --kb-coral:#f49a8a;
  --kb-coral-soft:#fff0ed;
  --kb-lavender:#b7a6e8;
  --kb-lavender-soft:#f2effc;
  --kb-line:#edf0f4;
  --kb-shadow:0 12px 35px rgba(75,91,118,.08);
}

html,body{
  background:
    radial-gradient(circle at 8% 0%,rgba(110,197,233,.12),transparent 25%),
    radial-gradient(circle at 92% 8%,rgba(246,214,117,.14),transparent 22%),
    var(--kb-bg);
  color:var(--kb-text);
}

/* LOGIN */
.auth-shell{
  background:
    radial-gradient(circle at 16% 15%,rgba(255,255,255,.42),transparent 20%),
    linear-gradient(145deg,#78cbed 0%,#9bdccc 42%,#f5dc86 100%);
}

.auth-brand{
  color:#29415c;
  position:relative;
  overflow:hidden;
}

.auth-brand:before,
.auth-brand:after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.24);
}

.auth-brand:before{
  width:260px;
  height:260px;
  right:-90px;
  top:-70px;
}

.auth-brand:after{
  width:180px;
  height:180px;
  left:-60px;
  bottom:-55px;
}

.auth-brand h1{
  color:#29415c;
  letter-spacing:-.04em;
}

.auth-brand p{
  color:#49647d;
  max-width:650px;
}

.school-chip{
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.78);
  color:#37526b;
  backdrop-filter:blur(10px);
}

.brand-mark{
  background:linear-gradient(135deg,#ffffff,#f7fcff);
  color:#4aa8cf;
  box-shadow:0 16px 34px rgba(56,120,150,.17);
}

.auth-card{
  border-radius:32px;
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 25px 70px rgba(74,99,123,.16);
}

.auth-card h2{
  color:#314158;
  line-height:1.18;
}

.footer-note{
  color:#8b97a8;
}

/* SIDEBAR */
.layout{
  grid-template-columns:280px 1fr;
}

.sidebar{
  background:
    linear-gradient(180deg,#ffffff 0%,#f8fcff 52%,#fffaf1 100%);
  color:var(--kb-text);
  border-right:1px solid #edf1f5;
  box-shadow:6px 0 30px rgba(65,91,120,.045);
}

.side-brand{
  border-bottom:1px dashed #e5eaf0;
  margin-bottom:8px;
}

.side-logo{
  background:linear-gradient(135deg,var(--kb-sky),var(--kb-mint));
  color:white;
  box-shadow:0 9px 22px rgba(110,197,233,.28);
}

.side-brand strong{
  color:#32465c;
}

.side-brand small{
  color:#8b98a8;
}

.nav-title{
  color:#a3adba;
}

.nav button{
  color:#66768a;
  border:1px solid transparent;
  transition:.18s ease;
}

.nav button:hover{
  background:#f7fbfd;
  color:#34495f;
  border-color:#edf1f5;
}

.nav button.active{
  background:linear-gradient(90deg,#eaf8fe,#f1faf7);
  color:#2e6f8e;
  border-color:#d8eff7;
  box-shadow:0 7px 18px rgba(90,164,194,.08);
}

.nav-ico{
  background:#eef8fc;
  color:#4e9fc1;
  font-weight:900;
}

.nav button:nth-child(2) .nav-ico{background:var(--kb-mint-soft);color:#439b87}
.nav button:nth-child(3) .nav-ico{background:var(--kb-yellow-soft);color:#a98221}
.nav button:nth-child(4) .nav-ico{background:var(--kb-coral-soft);color:#c46d5f}
.nav button:nth-child(5) .nav-ico{background:var(--kb-lavender-soft);color:#7e6abb}
.nav button:nth-child(6) .nav-ico{background:#eaf8fe;color:#4e9fc1}
.nav button:nth-child(7) .nav-ico{background:#fff8dd;color:#a98221}
.nav button:nth-child(8) .nav-ico{background:#eaf9f5;color:#439b87}
.nav button:nth-child(9) .nav-ico{background:#fff0ed;color:#c46d5f}
.nav button:nth-child(10) .nav-ico{background:#f2effc;color:#7e6abb}

.side-footer{
  background:linear-gradient(135deg,#f0f9fd,#fff9e8);
  color:#76879a;
  border:1px solid #e9f0f4;
}

.side-footer strong{
  color:#4d829a;
}

/* TOPBAR */
.topbar{
  height:78px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid #eef1f4;
}

.page-title{
  color:#314158;
}

.page-sub{
  color:#8a97a8;
}

.avatar{
  background:linear-gradient(135deg,#e8f7fd,#eaf9f5);
  color:#3888aa;
}

.menu-toggle{
  background:#f2f9fc;
  color:#478ba8;
}

/* CONTENT */
.content{
  padding:26px;
}

.card{
  border:1px solid rgba(223,230,237,.8);
  box-shadow:var(--kb-shadow);
  border-radius:24px;
}

.card-pad{
  padding:20px;
}

.hero-card{
  background:
    radial-gradient(circle at 90% 5%,rgba(255,255,255,.55),transparent 27%),
    linear-gradient(135deg,#e9f8fe 0%,#edf9f5 48%,#fff8dc 100%);
  color:#314158;
  border:1px solid #dceff2;
  position:relative;
  overflow:hidden;
}

.hero-card:after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-45px;
  bottom:-65px;
  border-radius:50%;
  background:rgba(183,166,232,.13);
}

.hero-card .muted{
  color:#6f8293;
}

.hero-card h2{
  color:#314158;
  letter-spacing:-.025em;
}

.stat{
  border:1px solid #edf0f4;
}

.stat:nth-child(1) .stat-icon{
  background:var(--kb-sky-soft);
  color:#429fc5;
}

.stat:nth-child(2) .stat-icon{
  background:var(--kb-mint-soft);
  color:#429a86;
}

.stat:nth-child(3) .stat-icon{
  background:var(--kb-yellow-soft);
  color:#aa8423;
}

.stat:nth-child(4) .stat-icon{
  background:var(--kb-coral-soft);
  color:#c56c5e;
}

.stat-value{
  color:#314158;
}

.muted{
  color:var(--kb-muted);
}

/* BUTTONS */
.btn{
  border-radius:14px;
  transition:transform .15s ease,box-shadow .15s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:linear-gradient(135deg,#5db8df,#64cbb1);
  color:white;
  box-shadow:0 8px 18px rgba(78,174,193,.18);
}

.btn-soft{
  background:#eef8fc;
  color:#367f9c;
}

.btn-dark{
  background:linear-gradient(135deg,#5baed2,#83cfbe);
  color:white;
}

/* FORM */
.input,.select,.textarea{
  border:1px solid #e0e7ee;
  border-radius:15px;
  background:#fff;
}

.input:focus,.select:focus,.textarea:focus{
  border-color:#8fd4ec;
  box-shadow:0 0 0 4px rgba(110,197,233,.13);
}

/* TABLE */
.table-wrap{
  border-color:#e8edf2;
  border-radius:18px;
}

th{
  background:#f9fbfc;
  color:#6c7b8d;
}

th,td{
  border-bottom-color:#eef2f5;
}

/* QUICK ACTION */
.quick button{
  border-radius:18px;
  border:1px solid #e9eef3;
  box-shadow:0 6px 18px rgba(65,91,120,.035);
}

.quick button:nth-child(1){background:#f0f9fd}
.quick button:nth-child(2){background:#eefaf6}
.quick button:nth-child(3){background:#fff9e5}
.quick button:nth-child(4){background:#fff1ee}

/* BADGES */
.b-green{background:#e7f8f2;color:#347c68}
.b-yellow{background:#fff5d3;color:#8e721f}
.b-red{background:#ffebe7;color:#b45e51}
.b-blue{background:#e8f6fc;color:#397e9b}

/* MODAL */
.modal-backdrop{
  background:rgba(49,65,88,.38);
  backdrop-filter:blur(4px);
}

.modal{
  border-radius:28px;
  box-shadow:0 28px 70px rgba(57,73,96,.2);
}

/* GATE */
.gate-shell{
  background:
    radial-gradient(circle at 10% 10%,rgba(255,255,255,.36),transparent 24%),
    radial-gradient(circle at 90% 85%,rgba(255,255,255,.24),transparent 22%),
    linear-gradient(145deg,#73c8ea,#8dd7c5 55%,#f4d97e);
  color:#314158;
}

.gate-card{
  border-radius:32px;
  box-shadow:0 30px 70px rgba(70,99,120,.18);
}

.gate-clock{
  color:#3787a8;
}

/* RESPONSIVE */
@media(max-width:820px){
  .sidebar{
    box-shadow:14px 0 35px rgba(57,76,98,.14);
  }

  .content{
    padding:16px;
  }
}

/* LOGIN: hanya 2 tombol */
.auth-actions{
  grid-template-columns:1fr !important;
}

/* LOGIN: hanya 2 tombol */
.auth-actions{
  grid-template-columns:1fr !important;
}

/* =========================================================
   KB THEME BOOST V2 - lebih tegas & tidak pucat
   ========================================================= */

:root{
  --kb-bg:#fff8f0;
  --kb-surface:#ffffff;
  --kb-text:#233a5c;
  --kb-muted:#61738b;

  --kb-sky:#35b8ea;
  --kb-sky-soft:#dff5ff;

  --kb-mint:#42c9a4;
  --kb-mint-soft:#e6fbf4;

  --kb-yellow:#f2c94c;
  --kb-yellow-soft:#fff6cf;

  --kb-coral:#f58e73;
  --kb-coral-soft:#ffede8;

  --kb-lavender:#917cf3;
  --kb-lavender-soft:#f0ecff;

  --kb-line:#e5edf5;
  --kb-shadow:0 14px 34px rgba(40,64,95,.10);
}

html,body{
  background:
    radial-gradient(circle at 8% 0%,rgba(53,184,234,.16),transparent 24%),
    radial-gradient(circle at 92% 8%,rgba(242,201,76,.15),transparent 22%),
    linear-gradient(180deg,#fffaf4 0%,#fff6ee 100%) !important;
  color:var(--kb-text) !important;
}

.sidebar{
  display:flex;
  flex-direction:column;
  height:100vh;
  overflow:hidden;
  background:
    linear-gradient(180deg,#ffffff 0%,#f7fcff 56%,#fff5e5 100%) !important;
  border-right:1px solid #e6edf4 !important;
  box-shadow:6px 0 28px rgba(62,84,112,.06) !important;
}

.nav{
  flex:1;
  overflow:auto;
  padding-right:6px;
}

.side-logo{
  background:linear-gradient(135deg,#38b6e8,#42c9a4) !important;
  color:#fff !important;
  box-shadow:0 10px 24px rgba(56,182,232,.22) !important;
}

.topbar{
  background:rgba(255,255,255,.94) !important;
  border-bottom:1px solid #ecf1f6 !important;
  backdrop-filter:blur(10px);
}

.page-title,
.auth-brand h1,
.auth-card h2,
.hero-card h2{
  color:#233a5c !important;
}

.page-sub,
.muted,
.auth-brand p,
.footer-note{
  color:#64758b !important;
}

.card,
.modal,
.table-wrap,
.stat{
  border:1px solid #e6edf4 !important;
  box-shadow:var(--kb-shadow) !important;
}

.hero-card{
  background:
    radial-gradient(circle at 90% 8%,rgba(255,255,255,.48),transparent 27%),
    linear-gradient(135deg,#dff5ff 0%,#e8fff6 48%,#fff1bf 100%) !important;
  border-color:#d8ebf5 !important;
}

.nav button{
  background:#ffffff !important;
  color:#5e7088 !important;
  border:1px solid #e4ecf4 !important;
  box-shadow:0 4px 12px rgba(40,64,95,.03);
}

.nav button:hover{
  background:#f7fbff !important;
  color:#2f5878 !important;
  border-color:#d9e8f3 !important;
}

.nav button.active{
  background:linear-gradient(135deg,#dff5ff 0%,#e6fbf4 100%) !important;
  color:#225a7d !important;
  border-color:#bfe6f6 !important;
  box-shadow:0 8px 18px rgba(76,170,206,.10) !important;
}

.nav-ico{
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.03);
}

.btn-primary,
.btn-dark{
  background:linear-gradient(135deg,#38b6e8 0%,#42c9a4 100%) !important;
  color:#fff !important;
  box-shadow:0 10px 20px rgba(56,182,232,.18) !important;
}

.btn-soft{
  background:#edf7ff !important;
  color:#2d7093 !important;
  border:1px solid #d8eaf6 !important;
}

.side-footer{
  margin-top:12px;
  background:linear-gradient(135deg,#eef9ff 0%,#fff4da 100%) !important;
  border:1px solid #e4edf6 !important;
  color:#6e7f94 !important;
}

.side-footer strong{
  color:#2f7597 !important;
}

th{
  background:#f8fbfd !important;
  color:#6a7d92 !important;
}

.b-green{background:#e5f9f1 !important;color:#2f816c !important}
.b-yellow{background:#fff3c6 !important;color:#9a7420 !important}
.b-red{background:#ffe8e1 !important;color:#b45b49 !important}
.b-blue{background:#e3f4fb !important;color:#327e9e !important}

@media(max-width:820px){
  .sidebar{
    box-shadow:14px 0 35px rgba(57,76,98,.14) !important;
  }
  .content{
    padding:16px !important;
  }
}

/* =========================================================
   SIMAS KB COLOR BOOST V3
   ========================================================= */

:root{
  --strong-blue:#239ed0;
  --strong-cyan:#34bfe3;
  --strong-mint:#2fc29f;
  --strong-yellow:#f3c84b;
  --strong-coral:#f27f69;
  --strong-purple:#8b72e8;
  --ink:#203a5e;
  --muted:#60758d;
}

/* APP BACKGROUND */
body{
  background:
    radial-gradient(circle at 95% 0%,rgba(243,200,75,.14),transparent 22%),
    radial-gradient(circle at 15% 5%,rgba(52,191,227,.10),transparent 20%),
    #f8fbfd !important;
}

/* SIDEBAR */
.sidebar{
  height:100dvh !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  background:
    linear-gradient(180deg,#ffffff 0%,#f3fbff 65%,#fff9e8 100%) !important;
}

.side-brand{
  flex-shrink:0 !important;
  padding-bottom:14px !important;
}

.nav{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:4px 9px 18px !important;
  scrollbar-width:thin;
}

.nav button{
  min-height:52px !important;
  margin-bottom:7px !important;
  background:#fff !important;
  border:1px solid #dfeaf3 !important;
  color:#526b86 !important;
  box-shadow:0 5px 13px rgba(36,72,103,.035) !important;
}

.nav button:hover{
  background:#f0faff !important;
  border-color:#bae2f2 !important;
  color:#245f80 !important;
}

.nav button.active{
  background:
    linear-gradient(135deg,#cdefff 0%,#d9f8ef 100%) !important;
  border-color:#8dd8ef !important;
  color:#175d80 !important;
  box-shadow:0 8px 20px rgba(35,158,208,.13) !important;
}

.side-footer{
  position:static !important;
  flex:0 0 auto !important;
  margin:8px 12px 12px !important;
  padding:13px 15px !important;
  background:
    linear-gradient(135deg,#dff5ff,#fff1bd) !important;
  border:1px solid #cae9f5 !important;
  z-index:2;
}

/* TOPBAR */
.topbar{
  background:#fff !important;
  border-bottom:1px solid #e3edf5 !important;
}

/* HERO */
.hero-card{
  background:
    radial-gradient(circle at 90% 90%,rgba(242,127,105,.13),transparent 25%),
    linear-gradient(125deg,#ccefff 0%,#d9f8ed 53%,#ffedaa 100%) !important;
  border-color:#bfe6f3 !important;
}

.hero-card h2{
  color:var(--ink) !important;
}

/* PRIMARY BUTTON */
.btn-primary,
.btn-dark{
  background:
    linear-gradient(135deg,#26a8dc 0%,#29c09d 100%) !important;
  color:#fff !important;
  border:none !important;
  box-shadow:0 9px 22px rgba(36,170,190,.20) !important;
}

/* STATS */
.stat:nth-child(1){
  border-top:4px solid var(--strong-cyan) !important;
}

.stat:nth-child(2){
  border-top:4px solid var(--strong-mint) !important;
}

.stat:nth-child(3){
  border-top:4px solid var(--strong-yellow) !important;
}

.stat:nth-child(4){
  border-top:4px solid var(--strong-coral) !important;
}

.stat-icon{
  font-weight:900 !important;
}

/* QUICK ACTIONS */
.quick button:nth-child(1){
  background:#dff4ff !important;
  border-color:#bae4f6 !important;
}

.quick button:nth-child(2){
  background:#def8ef !important;
  border-color:#b9eadb !important;
}

.quick button:nth-child(3){
  background:#fff0b9 !important;
  border-color:#f2dc8d !important;
}

.quick button:nth-child(4){
  background:#ffe2dc !important;
  border-color:#f4c4ba !important;
}

/* LOGIN */
.auth-shell{
  background:
    radial-gradient(circle at 50% 0%,rgba(255,255,255,.28),transparent 28%),
    radial-gradient(circle at 0% 100%,rgba(255,255,255,.22),transparent 20%),
    linear-gradient(125deg,#50c5e9 0%,#6bd4bd 54%,#f3d86e 100%) !important;
}

.auth-brand h1{
  color:#153b64 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.25);
}

.auth-brand p{
  color:#3e6880 !important;
}

.school-chip{
  background:rgba(255,255,255,.70) !important;
  border:1px solid rgba(255,255,255,.92) !important;
  color:#315d78 !important;
}

.auth-card{
  border-radius:30px !important;
  border:1px solid rgba(255,255,255,.92) !important;
  box-shadow:0 25px 65px rgba(40,77,100,.19) !important;
}

.auth-card h2{
  color:#193d65 !important;
  font-size:34px !important;
  line-height:1.12 !important;
}

.input:focus{
  border-color:#39b8df !important;
  box-shadow:0 0 0 4px rgba(57,184,223,.13) !important;
}

@media(max-width:820px){
  .sidebar{
    height:100dvh !important;
  }
}

/* =========================================================
   KB BACKGROUND DEPTH V1
   background utama dibuat sedikit lebih gelap
   ========================================================= */

html, body{
  background:
    radial-gradient(circle at 10% 0%, rgba(53,184,234,.10), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(242,201,76,.10), transparent 20%),
    linear-gradient(180deg, #eef3f7 0%, #e9eef3 100%) !important;
}

/* area utama dashboard */
.main,
.content,
main{
  background:
    linear-gradient(180deg, #f3f6f9 0%, #edf2f6 100%) !important;
}

/* area kanan konten supaya card lebih menonjol */
.content{
  border-left: 1px solid #dde6ee !important;
}

/* topbar sedikit lebih tegas */
.topbar{
  background: rgba(250,252,253,.96) !important;
  border-bottom: 1px solid #dde7ef !important;
}

/* card tetap putih agar kontras naik */
.card,
.modal,
.table-wrap,
.stat{
  background: #ffffff !important;
}

/* sidebar jangan terlalu putih polos */
.sidebar{
  background:
    linear-gradient(180deg,#fbfdff 0%,#f3f8fc 60%,#f8f1dc 100%) !important;
}

/* =========================================================
   LOGIN MOBILE REFINEMENT V1
   ========================================================= */

@media(max-width:640px){

  .auth-shell{
    min-height:100dvh !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:22px 16px !important;
    background:
      radial-gradient(circle at 20% 5%,rgba(255,255,255,.24),transparent 25%),
      linear-gradient(145deg,#49c2e7 0%,#60d2bd 58%,#f0d86f 100%) !important;
  }

  .auth-brand{
    display:none !important;
  }

  .auth-side{
    width:100% !important;
    max-width:420px !important;
    display:block !important;
    padding:0 !important;
  }

  .auth-card{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:28px 24px 24px !important;
    border-radius:28px !important;
    box-shadow:0 22px 55px rgba(32,66,90,.20) !important;
  }

  .auth-card:before{
    content:"SIMAS KB  •  KB. NURUL ISHLAH";
    display:block;
    margin-bottom:18px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.06em;
    color:#2c85a7;
    text-transform:uppercase;
  }

  .auth-card h2{
    font-size:32px !important;
    line-height:1.08 !important;
    letter-spacing:-.03em !important;
    margin:0 0 10px !important;
    max-width:320px;
  }

  .auth-card > p{
    font-size:16px !important;
    line-height:1.45 !important;
    margin:0 0 24px !important;
  }

  .auth-card label{
    font-size:14px !important;
    margin-bottom:7px !important;
  }

  .auth-card .input{
    height:54px !important;
    border-radius:16px !important;
    font-size:16px !important;
  }

  .auth-card form{
    gap:14px !important;
  }

  .auth-card .btn{
    min-height:54px !important;
    font-size:17px !important;
    border-radius:16px !important;
  }

  .auth-actions{
    margin-top:14px !important;
    gap:10px !important;
  }

  .footer-note{
    margin-top:22px !important;
    font-size:13px !important;
  }
}

/* =========================================================
   GATE CAMERA V1
   ========================================================= */

.gate-camera-box{
  margin:22px 0;
  padding:18px;
  border-radius:22px;
  background:#f4fafc;
  border:1px solid #d9eaf1;
}

.gate-camera-head{
  margin-bottom:14px;
}

.gate-camera-head strong{
  color:#203a5e;
  font-size:17px;
}

.gate-video-wrap{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:18px;
  background:#18232e;
}

#gateVideo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.gate-scan-frame{
  position:absolute;
  width:58%;
  aspect-ratio:1/1;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  border:3px solid #51d2b5;
  border-radius:20px;
  box-shadow:
    0 0 0 999px rgba(13,30,41,.28),
    0 0 24px rgba(81,210,181,.45);
  pointer-events:none;
}

.gate-camera-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.gate-camera-actions .btn{
  flex:1;
}

.gate-camera-status{
  margin-top:12px;
  font-size:13px;
  color:#63778b;
  text-align:center;
}

@media(max-width:640px){
  .gate-camera-box{
    padding:14px;
    border-radius:18px;
  }

  .gate-video-wrap{
    aspect-ratio:1/1;
  }

  .gate-scan-frame{
    width:66%;
  }
}

/* CRUD KELAS */
.table-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.btn-sm{
  min-height:36px !important;
  padding:7px 12px !important;
  font-size:13px !important;
  border-radius:10px !important;
}

.btn-danger{
  background:#fff0ed !important;
  color:#c65d4c !important;
  border:1px solid #f5c4ba !important;
}

.btn-danger:hover{
  background:#ffe3dd !important;
}

/* IMPORT EXCEL GURU / GTK */
.import-guide{
  padding:14px 16px;
  background:#eef9ff;
  border:1px solid #d7edf7;
  border-radius:14px;
  line-height:1.6;
}

.import-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.import-file-btn{
  min-height:44px;
  padding:10px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:#e4f8f2;
  border:1px solid #c4eadf;
  color:#287961;
  font-weight:800;
  cursor:pointer;
}

.import-file-btn input{
  display:none;
}

.teacher-import-preview{
  max-height:360px;
  overflow:auto;
}

.import-ok{
  color:#23866c;
  font-weight:800;
}

.import-bad{
  color:#c25548;
  font-weight:800;
}

.import-footer{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}

@media(max-width:640px){
  .import-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .import-actions .btn,
  .import-file-btn{
    width:100%;
  }

  .teacher-import-preview{
    max-height:300px;
  }
}

.password-mask{
  font-size:17px;
  letter-spacing:2px;
  color:#65788d;
  font-weight:800;
}

/* RESET PASSWORD GURU */
.password-field{
  position:relative;
}

.password-field .input{
  padding-right:105px;
}

.password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  min-width:82px;
  height:38px;
  border:0;
  border-radius:10px;
  background:#e7f5fb;
  color:#257392;
  font-weight:800;
  cursor:pointer;
}

.password-toggle:hover{
  background:#d8eff9;
}

/* FOTO GURU - EDIT */
.teacher-photo-editor{
  grid-column:1/-1;

  display:flex;
  align-items:center;

  gap:18px;

  padding:16px;

  margin-bottom:4px;

  border:1px solid #dce8e5;
  border-radius:16px;

  background:
    linear-gradient(
      135deg,
      #f8fcfb,
      #fffdf7
    );
}

.teacher-photo-preview{
  width:92px;
  height:92px;

  flex:0 0 92px;

  overflow:hidden;

  border-radius:50%;

  padding:4px;

  background:
    linear-gradient(
      145deg,
      #ecd474,
      #b9851d,
      #f4e5a6
    );

  box-shadow:
    0 8px 22px
    rgba(33,75,66,.14);
}

.teacher-photo-preview img,
.teacher-photo-fallback{
  width:100%;
  height:100%;

  border-radius:50%;
}

.teacher-photo-preview img{
  display:block;

  object-fit:cover;
  object-position:center top;

  background:#eef5f2;
}

.teacher-photo-fallback{
  display:flex;

  align-items:center;
  justify-content:center;

  background:
    linear-gradient(
      145deg,
      #075949,
      #0d8067
    );

  color:#efd773;

  font-size:28px;
  font-weight:900;
}

.teacher-photo-tools{
  min-width:0;

  display:flex;
  flex-direction:column;

  align-items:flex-start;

  gap:7px;
}

.teacher-photo-tools strong{
  color:#244f47;
  font-size:15px;
}

.teacher-photo-button{
  margin-top:3px;
  cursor:pointer;
}

@media(max-width:640px){
  .teacher-photo-editor{
    flex-direction:column;
    text-align:center;
  }

  .teacher-photo-tools{
    align-items:center;
  }
}

/* =========================================================
   MOBILE RESPONSIVE FINAL V1
   ========================================================= */

@media(max-width:820px){

  html,
  body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .layout{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-height:100dvh !important;
  }

  /* SIDEBAR DRAWER */
  .sidebar{
    position:fixed !important;
    top:0 !important;
    left:-290px !important;

    width:min(290px,86vw) !important;
    max-width:86vw !important;
    height:100dvh !important;

    z-index:40 !important;

    transition:left .22s ease !important;
  }

  .sidebar.open{
    left:0 !important;
  }

  /* MAIN WAJIB FULL SCREEN */
  .main,
  main{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;

    margin:0 !important;
    padding:0 !important;
  }

  /* TOPBAR */
  .topbar{
    width:100% !important;
    max-width:100% !important;

    height:68px !important;

    padding:0 12px !important;

    gap:8px !important;
  }

  .top-left{
    flex:1 1 auto !important;
    min-width:0 !important;

    gap:9px !important;
  }

  .menu-toggle{
    display:grid !important;
    place-items:center !important;

    flex:0 0 42px !important;

    width:42px !important;
    height:42px !important;
  }

  .page-title{
    max-width:100% !important;

    font-size:19px !important;
    line-height:1.08 !important;

    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .page-sub{
    margin-top:3px !important;

    font-size:11px !important;
    line-height:1.2 !important;

    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .user-pill{
    flex:0 0 auto !important;

    gap:7px !important;
  }

  .user-pill .user-meta{
    display:none !important;
  }

  .avatar{
    width:36px !important;
    height:36px !important;

    flex:0 0 36px !important;

    font-size:14px !important;
  }

  .user-pill .btn{
    min-height:40px !important;

    padding:9px 12px !important;

    font-size:13px !important;
    border-radius:12px !important;
  }

  /* AREA CONTENT */
  .content{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin:0 !important;

    padding:14px !important;

    border-left:0 !important;

    overflow:visible !important;
  }

  .grid,
  .stats,
  .two,
  .three,
  .quick{
    width:100% !important;
    max-width:100% !important;
  }

  .stats,
  .two,
  .three{
    grid-template-columns:1fr !important;
  }

  /* CARDS */
  .card{
    width:100% !important;
    max-width:100% !important;
  }

  .card-pad{
    padding:16px !important;
  }

  /* HEADER DALAM CARD */
  .section-head{
    width:100% !important;

    display:flex !important;
    flex-direction:column !important;

    align-items:stretch !important;

    gap:12px !important;

    margin-bottom:16px !important;
  }

  .section-head > div{
    min-width:0 !important;
  }

  .section-head h3{
    font-size:20px !important;
    line-height:1.2 !important;
  }

  .section-head .muted{
    margin-top:4px !important;

    font-size:14px !important;
    line-height:1.5 !important;
  }

  .section-head > .btn{
    width:100% !important;
  }

  .section-head .toolbar{
    width:100% !important;

    display:grid !important;
    grid-template-columns:1fr !important;

    gap:8px !important;
  }

  .section-head .toolbar .btn{
    width:100% !important;
  }

  /* DASHBOARD HERO */
  .hero-card{
    width:100% !important;

    padding:22px 18px !important;
  }

  .hero-card h1,
  .hero-card h2{
    max-width:100% !important;

    font-size:clamp(30px,9vw,38px) !important;
    line-height:1.12 !important;

    margin-top:12px !important;
    margin-bottom:18px !important;
  }

  .hero-card p,
  .hero-card .muted{
    font-size:16px !important;
    line-height:1.5 !important;
  }

  .hero-card .btn{
    width:100% !important;

    margin-top:8px !important;
  }

  /* TABLE */
  .table-wrap{
    display:block !important;

    width:100% !important;
    max-width:100% !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    -webkit-overflow-scrolling:touch !important;
  }

  .table-wrap table{
    width:max-content !important;
    min-width:720px !important;
  }

  th,
  td{
    white-space:nowrap !important;
  }

  /* FORM / MODAL */
  .form-grid{
    grid-template-columns:1fr !important;
  }

  .modal-backdrop{
    padding:12px !important;
  }

  .modal{
    width:100% !important;
    max-width:100% !important;

    max-height:92dvh !important;

    padding:18px !important;

    border-radius:20px !important;
  }
}

@media(max-width:560px){

  .content{
    padding:12px !important;
  }

  .topbar{
    padding:0 10px !important;
  }

  .card-pad{
    padding:15px !important;
  }

  .quick{
    grid-template-columns:1fr !important;
  }
}

/* =========================================================
   KELAS / ROMBEL - MOBILE CARD VIEW
   ========================================================= */

.mobile-class-list{
  display:none;
}

.desktop-class-table{
  display:block;
}

@media(max-width:820px){

  .desktop-class-table{
    display:none !important;
  }

  .mobile-class-list{
    display:grid !important;
    gap:12px;
  }

  .mobile-class-item{
    padding:15px;

    border:1px solid #dce8ee;
    border-radius:18px;

    background:
      linear-gradient(
        145deg,
        #ffffff 0%,
        #fbfdfd 72%,
        #f5faf7 100%
      );

    box-shadow:
      0 8px 22px
      rgba(35,65,82,.06);
  }

  .mobile-class-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:12px;

    padding-bottom:12px;

    border-bottom:1px solid #e8eef2;
  }

  .mobile-class-head strong{
    display:block;

    color:#214466;

    font-size:18px;
    line-height:1.15;
  }

  .mobile-class-head small{
    display:block;

    margin-top:5px;

    color:#8795a5;
    font-size:12px;
  }

  .mobile-class-group{
    min-width:42px;
    height:34px;

    padding:0 12px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:#e7f7f2;
    color:#20816b;

    font-size:14px;
    font-weight:900;
  }

  .mobile-class-meta{
    display:grid;
    grid-template-columns:1fr 1fr;

    gap:10px;

    padding:13px 0;
  }

  .mobile-class-meta > div{
    min-width:0;

    padding:11px 12px;

    border-radius:13px;

    background:#f5f8fa;
  }

  .mobile-class-meta span{
    display:block;

    margin-bottom:5px;

    color:#8996a5;
    font-size:11px;
    font-weight:700;
  }

  .mobile-class-meta strong{
    display:block;

    color:#334e68;

    font-size:14px;
    line-height:1.25;

    white-space:normal;
    overflow-wrap:anywhere;
  }

  .mobile-class-actions{
    display:grid;
    grid-template-columns:1fr 1fr;

    gap:8px;
  }

  .mobile-class-actions .btn{
    width:100% !important;
  }
}

@media(max-width:420px){

  .mobile-class-meta{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   DATA SISWA - MOBILE CARD VIEW
   ========================================================= */

.mobile-student-list{
  display:none;
}

.desktop-student-table{
  display:block;
}

@media(max-width:820px){

  .desktop-student-table{
    display:none !important;
  }

  .mobile-student-list{
    display:grid !important;
    gap:12px;
  }

  .mobile-student-item{
    padding:15px;

    border:1px solid #dce8ee;
    border-radius:18px;

    background:
      linear-gradient(
        145deg,
        #ffffff 0%,
        #fbfdfd 72%,
        #f6faf8 100%
      );

    box-shadow:
      0 8px 22px rgba(35,65,82,.06);
  }

  .mobile-student-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;

    padding-bottom:12px;

    border-bottom:1px solid #e8eef2;
  }

  .mobile-student-head strong{
    display:block;

    color:#214466;

    font-size:18px;
    line-height:1.2;
  }

  .mobile-student-head small{
    display:block;

    margin-top:5px;

    color:#8795a5;

    font-size:12px;
  }

  .mobile-student-meta{
    display:grid;
    grid-template-columns:1fr 1fr;

    gap:10px;

    padding:13px 0;
  }

  .mobile-student-meta > div{
    min-width:0;

    padding:11px 12px;

    border-radius:13px;

    background:#f5f8fa;
  }

  .mobile-student-meta > div:last-child{
    grid-column:1/-1;
  }

  .mobile-student-meta span{
    display:block;

    margin-bottom:5px;

    color:#8996a5;

    font-size:11px;
    font-weight:700;
  }

  .mobile-student-meta strong{
    display:block;

    color:#334e68;

    font-size:14px;
    line-height:1.3;

    white-space:normal;
    overflow-wrap:anywhere;
  }

  .mobile-student-actions{
    display:grid;
    grid-template-columns:1fr 1fr;

    gap:8px;
  }

  .mobile-student-actions .btn{
    width:100% !important;
  }
}

@media(max-width:420px){

  .mobile-student-meta{
    grid-template-columns:1fr;
  }

  .mobile-student-meta > div:last-child{
    grid-column:auto;
  }
}

/* =========================================================
   ABSEN GERBANG - COMPACT CAMERA ONLY V1
   ========================================================= */

/* input manual tetap ada untuk mekanisme internal scanner,
   tetapi tidak ditampilkan ke pengguna */
.gate-card #scanForm{
  display:none !important;
}

.gate-shell{
  min-height:100dvh !important;
  padding:12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.gate-card{
  width:min(760px,100%) !important;
  max-width:760px !important;
  margin:0 auto !important;
  padding:18px 22px !important;
  border-radius:24px !important;
}

.gate-card > div[style*="text-align:center"]{
  margin-top:2px !important;
}

.gate-card h1{
  margin:8px 0 6px !important;
  font-size:30px !important;
  line-height:1.08 !important;
}

.gate-clock{
  margin:4px 0 !important;
  font-size:42px !important;
  line-height:1 !important;
}

.gate-card .gate-clock + p{
  margin:8px 0 12px !important;
  font-size:14px !important;
}

.gate-camera-box{
  margin-top:10px !important;
  padding:14px !important;
  border-radius:20px !important;
}

.gate-camera-head{
  margin-bottom:10px !important;
}

.gate-camera-head strong{
  font-size:16px !important;
}

.gate-camera-head .muted{
  font-size:13px !important;
}

.gate-video-wrap{
  height:260px !important;
  min-height:260px !important;
  max-height:260px !important;
  border-radius:18px !important;
}

#gateVideo{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

.gate-scan-frame{
  width:46% !important;
  height:58% !important;
  max-width:300px !important;
  max-height:180px !important;
}

.gate-camera-actions{
  margin-top:10px !important;
}

.gate-camera-actions .btn{
  min-height:44px !important;
  padding:10px 16px !important;
}

.gate-camera-status{
  margin-top:8px !important;
  font-size:12px !important;
  line-height:1.3 !important;
}

.gate-result{
  margin-top:10px !important;
  padding:12px 14px !important;
  min-height:48px !important;
  border-radius:14px !important;
  font-size:14px !important;
}


/* MOBILE */
@media(max-width:600px){

  .gate-shell{
    padding:8px !important;
    align-items:flex-start !important;
  }

  .gate-card{
    width:100% !important;
    margin:0 !important;
    padding:12px !important;
    border-radius:18px !important;
  }

  .gate-card #backLogin{
    min-height:38px !important;
    padding:8px 12px !important;
    font-size:13px !important;
  }

  .gate-card h1{
    margin:5px 0 !important;
    font-size:23px !important;
  }

  .gate-clock{
    font-size:34px !important;
  }

  .gate-card .gate-clock + p{
    margin:5px 0 8px !important;
    font-size:12px !important;
  }

  .gate-camera-box{
    margin-top:7px !important;
    padding:10px !important;
    border-radius:16px !important;
  }

  .gate-camera-head{
    margin-bottom:7px !important;
  }

  .gate-camera-head strong{
    font-size:14px !important;
  }

  .gate-camera-head .muted{
    font-size:11px !important;
  }

  .gate-video-wrap{
    height:230px !important;
    min-height:230px !important;
    max-height:230px !important;
  }

  .gate-scan-frame{
    width:58% !important;
    height:62% !important;
    max-width:230px !important;
    max-height:155px !important;
  }

  .gate-camera-actions{
    margin-top:8px !important;
  }

  .gate-camera-actions .btn{
    min-height:40px !important;
    padding:8px 12px !important;
    font-size:13px !important;
  }

  .gate-camera-status{
    margin-top:6px !important;
    font-size:11px !important;
  }

  .gate-result{
    margin-top:8px !important;
    padding:10px 12px !important;
    min-height:42px !important;
    font-size:13px !important;
  }
}


/* ABSEN GERBANG - LAPTOP COMPACT V2 */
@media(min-width:601px){

  .gate-card{
    position:relative !important;
    padding:16px 20px !important;
  }

  .gate-card #backLogin{
    position:absolute !important;
    top:16px !important;
    left:18px !important;
    z-index:5 !important;
    min-height:40px !important;
    padding:8px 14px !important;
  }

  .gate-card > div[style*="text-align:center"]{
    margin-top:0 !important;
  }

  .gate-card h1{
    margin:5px 0 4px !important;
    font-size:28px !important;
  }

  .gate-clock{
    font-size:38px !important;
  }

  .gate-card .gate-clock + p{
    margin:5px 0 9px !important;
  }

  .gate-camera-box{
    padding:12px !important;
    margin-top:6px !important;
  }

  .gate-video-wrap{
    height:220px !important;
    min-height:220px !important;
    max-height:220px !important;
  }

  .gate-scan-frame{
    width:44% !important;
    height:62% !important;
    max-width:280px !important;
    max-height:145px !important;
  }

  .gate-result{
    margin-top:8px !important;
    padding:10px 14px !important;
  }
}


/* REKAP KEHADIRAN V1 */

.attendance-summary{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}

.attendance-stat{
  padding:14px;
  border:1px solid #e3eaf1;
  border-radius:15px;
  background:#f8fafc;
  text-align:center;
}

.attendance-stat span{
  display:block;
  color:#718096;
  font-size:12px;
}

.attendance-stat strong{
  display:block;
  margin-top:5px;
  font-size:24px;
}

@media(max-width:820px){

  .attendance-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .attendance-summary .attendance-stat:last-child{
    grid-column:1/-1;
  }
}


/* SIMAS_KB_JADWAL_GURU_COMPACT_V1 */
.duty-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
  width:100%;
}

.duty-day-card{
  min-width:0;
  overflow:hidden;
}

.duty-day-head{
  margin-bottom:14px;
}

.duty-day-head h3{
  margin:0 0 4px;
}

.duty-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.duty-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border:1px solid var(--line,#e5edf3);
  border-radius:14px;
  background:#fff;
}

.duty-person{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.duty-person strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.duty-number{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef7fb;
  font-weight:700;
  font-size:13px;
}

.duty-scope{
  font-size:12px;
  margin-top:2px;
}

.duty-row .duty-delete{
  flex:0 0 auto;
  padding:8px 12px;
}

@media (max-width:1100px){
  .duty-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:700px){
  .duty-grid{
    grid-template-columns:1fr;
  }
}

/* SIMAS_KB_DASHBOARD_HONOR_POLISH_V1 */
.dashboard-honor-card{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}

.dashboard-honor-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(15,23,42,.10);
}

.dashboard-honor-card:focus-visible{
  outline:3px solid rgba(14,165,233,.25);
  outline-offset:3px;
}


/* SIMAS_KB_MOBILE_LOGIN_POLISH_V1 */
.mobile-login-brand{
  display:none;
}

@media(max-width:820px){

  .auth-side{
    padding:22px 18px !important;
  }

  .auth-card{
    padding:26px 22px 24px !important;
    border-radius:26px !important;
  }

  .auth-card:before{
    display:none !important;
    content:none !important;
  }

  .mobile-login-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:22px;
  }

  .mobile-login-logo{
    width:56px;
    height:56px;
    flex:0 0 56px;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    border:1px solid #dce8ed;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:4px;
    box-shadow:0 8px 20px rgba(15,39,70,.08);
  }

  .mobile-login-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
  }

  .mobile-login-identity{
    font-size:14px;
    line-height:1.35;
    font-weight:800;
    letter-spacing:.04em;
    color:#31839d;
  }

  .mobile-login-identity span{
    margin:0 4px;
  }

  .auth-card h2{
    font-size:29px !important;
    line-height:1.12 !important;
    margin:0 0 10px !important;
  }

  .auth-card > p{
    font-size:16px !important;
    line-height:1.5 !important;
    margin-bottom:22px !important;
  }

  .auth-card .field{
    margin-bottom:14px !important;
  }

  .auth-card .auth-actions{
    margin-top:14px !important;
  }

  .auth-card .footer-note{
    margin-top:18px !important;
  }
}


/* SIMAS_KB_GURU_BOTTOM_NAV_MOBILE_V1 */
.guru-bottom-nav{
  display:none;
}

@media(max-width:820px){

  .guru-layout .sidebar{
    display:none !important;
  }

  .guru-layout .menu-toggle{
    display:none !important;
  }

  .guru-layout .content{
    padding-bottom:105px !important;
  }

  .guru-layout .topbar{
    padding-left:20px !important;
  }

  .guru-bottom-nav{
    position:fixed;
    left:12px;
    right:12px;
    bottom:max(10px,env(safe-area-inset-bottom));
    z-index:90;

    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;

    padding:7px;
    background:rgba(255,255,255,.96);
    border:1px solid rgba(210,225,234,.95);
    border-radius:22px;

    box-shadow:0 16px 38px rgba(15,39,70,.16);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .guru-bottom-nav button{
    border:0;
    background:transparent;
    border-radius:16px;

    min-width:0;
    min-height:64px;
    padding:7px 3px 6px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;

    color:#64748b;
    font-family:inherit;
    font-size:10.5px;
    font-weight:700;
  }

  .guru-bottom-nav button.active{
    color:#156b82;
    background:linear-gradient(
      135deg,
      #dff7fb,
      #e4faf1
    );
  }

  .guru-bottom-ico{
    width:30px;
    height:30px;
    border-radius:10px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#f1f7f9;
    font-size:11px;
    font-weight:900;
  }

  .guru-bottom-nav button.active .guru-bottom-ico{
    background:#fff;
    box-shadow:0 4px 12px rgba(15,39,70,.08);
  }
}

/* SIMAS_KB_GURU_BOTTOM_NAV_STICKY_V2 */
@media(max-width:820px){

  .guru-layout .content{
    padding-bottom:92px !important;
  }

  .guru-bottom-nav{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;

    width:100% !important;

    padding:
      8px 10px
      calc(8px + env(safe-area-inset-bottom))
      10px !important;

    border-radius:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    border-bottom:0 !important;

    background:#fff !important;

    box-shadow:
      0 -6px 22px rgba(15,39,70,.10) !important;

    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  .guru-bottom-nav button{
    min-height:58px !important;
    border-radius:14px !important;
  }
}

/* SIMAS_KB_GURU_MOBILE_SCROLL_V1 */
@media(max-width:820px){

  .guru-layout .main{
    min-height:calc(100dvh + 64px) !important;
    overflow:visible !important;
  }

  .guru-layout .content{
    overflow:visible !important;
  }
}


/* SIMAS_KB_LOGIN_PASSWORD_EYE_CSS_V1 */
.password-wrap{
  position:relative;
  width:100%;
}

.password-wrap .input{
  padding-right:52px !important;
}

.password-toggle{
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);

  width:40px;
  height:40px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:0;
  border-radius:11px;

  background:transparent;
  color:#8290a3;

  cursor:pointer;
}

.password-toggle svg{
  width:22px;
  height:22px;
  fill:currentColor;
}

.password-toggle:hover,
.password-toggle.is-visible{
  background:#eef7fa;
  color:#16869d;
}

.password-toggle:focus-visible{
  outline:3px solid rgba(22,134,157,.18);
  outline-offset:1px;
}


/* =========================================================
   SIMAS_KB_DASHBOARD_ABSENT_STUDENTS_V1
   ========================================================= */

.dashboard-absent-card{
  border-top:4px solid #ef7b68;
}

.dashboard-absent-head{
  align-items:center;
  margin-bottom:14px;
}

.dashboard-absent-head h3{
  margin:0 0 3px;
}

.dashboard-absent-date{
  font-size:12px;
}

.dashboard-absent-count{
  min-width:40px;
  height:40px;
  padding:0 11px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:14px;

  background:#fff0ec;
  color:#c85a45;

  font-size:18px;
  font-weight:900;
}

.dashboard-absent-list{
  display:grid;
  gap:9px;
}

.dashboard-absent-row{
  display:grid;
  grid-template-columns:
    minmax(180px,1fr)
    minmax(220px,1fr);

  align-items:center;
  gap:14px;

  padding:12px 14px;

  border:1px solid #e8eef2;
  border-radius:14px;

  background:#fbfcfd;
}

.dashboard-absent-name{
  color:#183d5c;
  font-size:14px;
  font-weight:800;
}

.dashboard-absent-detail{
  display:flex;
  align-items:center;
  gap:10px;
}

.dashboard-absent-badge{
  flex:0 0 auto;

  min-width:58px;
  padding:6px 9px;

  border-radius:999px;

  text-align:center;

  font-size:10px;
  font-weight:900;
}

.dashboard-absent-izin{
  background:#fff4cf;
  color:#946b00;
}

.dashboard-absent-sakit{
  background:#ffe8e3;
  color:#b65242;
}

.dashboard-absent-alpa{
  background:#f2e9ff;
  color:#7447a6;
}

.dashboard-absent-reason{
  color:#718696;
  font-size:12px;
  line-height:1.4;
}

.dashboard-absent-empty{
  padding:15px;

  border:1px dashed #d5e1e8;
  border-radius:14px;

  background:#fafcfd;

  color:#7e929f;
  text-align:center;
  font-size:12px;
}


@media (max-width:720px){

  .dashboard-absent-row{
    grid-template-columns:1fr;
    gap:7px;
  }

  .dashboard-absent-detail{
    align-items:flex-start;
  }

}

