@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#10243b;--navy-2:#193a58;--blue:#1769aa;--blue-dark:#12588f;--sky:#eaf4fb;--ink:#1d2b3a;--muted:#718096;--line:#e6edf3;--gold:#c18a27;--green:#21856a}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}body{background:#f4f7fb;color:var(--ink);font-family:'DM Sans','Segoe UI',Arial,sans-serif;font-size:15px}a{text-decoration:none}.topbar{background:rgba(16,36,59,.98);box-shadow:0 5px 24px rgba(11,30,49,.13);min-height:78px;z-index:1030}.nav-container{max-width:1370px}.brand-logo{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:12px;padding:3px;box-shadow:0 2px 9px #06182b24}.brand-copy{font-family:Manrope,sans-serif;font-size:.88rem;letter-spacing:.055em;line-height:1.35;color:#fff}.brand-copy b{font-weight:800}.brand-copy small{font-size:.61rem;letter-spacing:.16em;color:#b9c9d8;margin-top:3px}.topbar .navbar-nav{gap:4px}.topbar .nav-link{color:#d1deea!important;font-size:.88rem;font-weight:600;padding:.65rem .8rem!important;transition:color .2s}.topbar .nav-link:hover,.topbar .nav-link.active{color:#fff!important}.topbar .nav-link.active{position:relative}.topbar .nav-link.active:after{content:'';position:absolute;left:.8rem;right:.8rem;bottom:3px;height:2px;border-radius:2px;background:#e0b24e}.btn-login-nav{display:inline-flex;align-items:center;background:#fff;color:var(--navy);border-radius:30px;padding:11px 21px;font-size:.87rem;font-weight:800;box-shadow:0 5px 15px #06182b22;transition:transform .2s,box-shadow .2s}.btn-login-nav:hover{color:var(--navy);transform:translateY(-2px);box-shadow:0 8px 20px #06182b30}.navbar-toggler{border-color:#ffffff55!important;box-shadow:none!important}.hero-public{position:relative;isolation:isolate;min-height:510px;display:flex;align-items:center;overflow:hidden;background:linear-gradient(115deg,#fff 0%,#f9fcff 53%,#eaf4fb 100%)}.hero-art{position:absolute;z-index:-2;right:0;top:0;width:74%;height:100%;display:flex;align-items:center;justify-content:flex-end;overflow:hidden}.hero-art img{width:100%;height:100%;object-fit:contain;object-position:right center}.hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.98) 30%,rgba(255,255,255,.84) 46%,rgba(255,255,255,.12) 73%,rgba(255,255,255,0) 100%);pointer-events:none}.hero-inner{max-width:1370px;padding-top:76px;padding-bottom:78px}.hero-copy{max-width:620px;position:relative;z-index:1}.school-kicker,.section-kicker{font-size:.68rem;letter-spacing:.19em;font-weight:800;color:#3979a9}.school-kicker{display:flex;align-items:center;gap:10px;margin-bottom:20px}.school-kicker span{width:27px;height:2px;background:#d6a744;border-radius:4px}.hero-public h1{font-family:Manrope,'Segoe UI',sans-serif;font-size:clamp(2.7rem,5.1vw,4.65rem);font-weight:800;letter-spacing:-.055em;line-height:1.04;color:var(--navy);margin:0}.hero-public h1 em{font-style:normal;color:#1b6399}.hero-description{font-size:1.08rem;line-height:1.8;color:#65778a;max-width:520px;margin:23px 0 25px}.hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.btn-hero,.btn-hero-outline{border-radius:30px;padding:13px 22px;font-size:.94rem;font-weight:700}.btn-primary{background:var(--blue);border-color:var(--blue)}.btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}.btn-hero{box-shadow:0 8px 20px #1769aa2b}.btn-hero-outline{border-color:#cbd7e2;color:#40566b;background:#ffffffb8}.btn-hero-outline:hover{background:#fff;border-color:#9eb2c4;color:var(--navy)}.hero-note{display:flex;align-items:center;gap:8px;color:#718296;font-size:.78rem;margin-top:25px}.hero-note i{color:#27876c;font-size:1rem}.hero-bottom-line{position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#c99431 0 33.33%,#fff 33.33% 66.66%,#bd3030 66.66% 100%);opacity:.8}.intro-section{padding:78px 0 82px;background:#f4f7fb}.section-heading{max-width:720px;margin:0 auto 38px}.section-kicker{margin-bottom:12px}.section-heading h2,.class-heading h2{font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-.035em;color:var(--navy);font-size:clamp(1.65rem,3vw,2.35rem);margin-bottom:11px}.section-heading p,.class-heading p{color:#78889a;font-size:.97rem;margin:0;line-height:1.7}.feature-grid{max-width:1200px;margin-inline:auto}.feature-card{position:relative;background:#fff;border:1px solid #e9eff5;border-radius:20px;padding:29px 28px 25px;box-shadow:0 8px 28px rgba(24,54,83,.045);transition:transform .25s,box-shadow .25s,border-color .25s}.feature-card:hover{transform:translateY(-5px);box-shadow:0 16px 35px rgba(24,54,83,.09);border-color:#d7e4ef}.feature-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:1.4rem;margin-bottom:24px}.icon-blue{background:#eaf3fb;color:#1769aa}.icon-gold{background:#fbf3e4;color:#b47b1b}.icon-green{background:#e8f5f0;color:#21856a}.feature-label{font-size:.63rem;letter-spacing:.14em;font-weight:800;color:#91a0af;margin-bottom:9px}.feature-card h3{font-family:Manrope,sans-serif;font-size:1.13rem;font-weight:800;color:var(--navy);margin-bottom:9px}.feature-card p{color:#748397;line-height:1.7;font-size:.9rem;min-height:49px;margin-bottom:17px}.feature-link{display:inline-flex;align-items:center;gap:9px;color:#1769aa;font-size:.84rem;font-weight:800}.feature-link i{transition:transform .2s}.feature-link:hover i{transform:translateX(4px)}.class-section{background:#fff;padding:75px 0 82px;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}.class-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.class-heading h2{margin-bottom:8px}.text-link{align-items:center;gap:8px;color:#1769aa;font-weight:800;font-size:.85rem;white-space:nowrap;padding-bottom:7px}.grade-card{min-height:205px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:25px 26px;border-radius:19px;color:#fff;box-shadow:0 10px 26px rgba(16,36,59,.1);transition:transform .25s,box-shadow .25s}.grade-card:hover{color:#fff;transform:translateY(-4px);box-shadow:0 16px 32px rgba(16,36,59,.16)}.grade-card:before{content:'';position:absolute;width:190px;height:190px;border:1px solid #ffffff30;border-radius:50%;right:-43px;top:-65px}.grade-card:after{content:'';position:absolute;width:135px;height:135px;border:1px solid #ffffff25;border-radius:50%;right:-15px;top:-37px}.grade-seven{background:linear-gradient(125deg,#174e78,#287cac)}.grade-eight{background:linear-gradient(125deg,#185b55,#26927c)}.grade-nine{background:linear-gradient(125deg,#785322,#bd8a35)}.grade-number{position:absolute;right:24px;top:11px;font-family:Manrope,sans-serif;font-size:5.2rem;font-weight:800;line-height:1;color:#ffffff20;letter-spacing:-.08em}.grade-meta{font-size:.65rem;letter-spacing:.18em;font-weight:800;color:#ffffffb8;margin-bottom:8px;position:relative;z-index:1}.grade-card strong{font-family:Manrope,sans-serif;font-size:1.12rem;font-weight:800;position:relative;z-index:1}.grade-arrow{position:absolute;right:24px;bottom:24px;width:34px;height:34px;border:1px solid #ffffff70;border-radius:50%;display:grid;place-items:center;z-index:2}.closing-cta{padding:68px 0;background:#f4f7fb}.cta-panel{background:linear-gradient(110deg,#10243b,#1c527a);border-radius:24px;padding:39px 46px;display:flex;align-items:center;justify-content:space-between;gap:25px;color:#fff;position:relative;overflow:hidden;box-shadow:0 15px 35px rgba(16,36,59,.12)}.cta-panel:after{content:'P';position:absolute;right:190px;top:-85px;font-family:Manrope,sans-serif;font-size:19rem;font-weight:800;line-height:1;color:#ffffff08;pointer-events:none}.cta-kicker{font-size:.64rem;letter-spacing:.16em;font-weight:800;color:#c7d9e8;margin-bottom:10px}.cta-panel h2{font-family:Manrope,sans-serif;font-size:clamp(1.35rem,2.8vw,2rem);font-weight:800;margin:0 0 8px;position:relative;z-index:1}.cta-panel p{color:#c2d2df;margin:0;font-size:.9rem;position:relative;z-index:1}.btn-cta{position:relative;z-index:2;border-radius:30px;padding:13px 22px;color:var(--navy);font-weight:800;white-space:nowrap}.btn-cta:hover{background:#eaf2f8;color:var(--navy)}.public-footer{background:#fff;border-top:1px solid #e7edf3;padding:25px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px}.footer-inner img{width:42px;height:42px;object-fit:contain}.footer-inner strong,.footer-inner span{display:block}.footer-inner strong{font-family:Manrope,sans-serif;font-size:.77rem;color:var(--navy);letter-spacing:.04em}.footer-inner span,.footer-copy,.footer-motto{font-size:.76rem;color:#8795a5}.footer-motto{font-weight:600}.footer-copy{white-space:nowrap}
/* Komponen dashboard/login tetap menggunakan gaya dasar yang sama. */
.eyebrow{font-size:.68rem;letter-spacing:.17em;font-weight:800;color:#5282a9}.page-title{font-size:1.75rem;font-weight:750;margin:2px 0 0;color:#14283e}.stat-card,.panel,.content-card{border:0;border-radius:18px;background:#fff;box-shadow:0 5px 22px #1b35500b}.stat-card{padding:22px;height:100%}.stat-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:1.25rem;background:var(--sky);color:var(--blue)}.stat-number{font-size:1.9rem;font-weight:800;margin-top:14px}.stat-label{font-size:.84rem;color:var(--muted)}.panel{padding:22px}.panel-title{font-weight:750;font-size:1.02rem}.table{vertical-align:middle}.table thead th{font-size:.73rem;text-transform:uppercase;letter-spacing:.06em;color:#718096;background:#f7f9fc;border:0}.table td{font-size:.88rem;padding:14px 10px}.form-control,.form-select{border-color:#dce4ed;border-radius:10px;padding:.68rem .8rem}.form-control:focus,.form-select:focus{border-color:#72a9d2;box-shadow:0 0 0 .2rem #1769aa18}.login-wrap{min-height:100vh;background:linear-gradient(130deg,#10243b,#1b5e91);display:grid;place-items:center;padding:20px}.login-card{max-width:440px;width:100%;border:0;border-radius:22px;box-shadow:0 25px 70px #06182b55}.login-logo{height:68px;width:68px;object-fit:contain}.content-card .card-body{padding:22px}.badge-soft{background:#eaf4fb;color:#1769aa}.empty-state{padding:35px;text-align:center;color:#718096}.empty-state i{font-size:2rem;color:#9aafc2}.app-footer{color:#748296;font-size:.78rem}
@media(min-width:1500px){.hero-public{min-height:550px}.hero-inner{padding-top:88px;padding-bottom:90px}}
@media(max-width:991.98px){.topbar{min-height:70px}.topbar .navbar-collapse{padding:13px 0 8px}.topbar .navbar-nav{align-items:stretch!important}.topbar .nav-link{padding:10px 4px!important}.topbar .nav-link.active:after{display:none}.btn-login-nav{margin-top:8px;justify-content:center}.hero-public{min-height:470px}.hero-art{width:78%;opacity:.9}.hero-shade{background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 37%,rgba(255,255,255,.77) 58%,rgba(255,255,255,.12) 100%)}.hero-copy{max-width:570px}.hero-public h1{font-size:clamp(2.55rem,6vw,3.7rem)}}
@media(max-width:767.98px){body{font-size:14px}.hero-public{min-height:590px;align-items:flex-start}.hero-inner{padding-top:68px;padding-bottom:58px}.hero-art{width:100%;height:100%;opacity:.42}.hero-art img{object-position:68% center;object-fit:cover}.hero-shade{background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 48%,rgba(255,255,255,.56) 100%)}.hero-copy{max-width:100%}.hero-public h1{font-size:clamp(2.55rem,11vw,3.6rem)}.hero-description{font-size:.98rem;line-height:1.7;max-width:470px}.hero-actions{align-items:stretch;flex-direction:column;max-width:290px}.btn-hero,.btn-hero-outline{text-align:center}.hero-note{font-size:.72rem;flex-wrap:wrap}.intro-section{padding:58px 0 62px}.section-heading{margin-bottom:28px}.section-heading h2,.class-heading h2{font-size:1.7rem}.feature-card{padding:24px}.feature-icon{margin-bottom:18px}.feature-card p{min-height:0}.class-section{padding:58px 0 62px}.class-heading{align-items:flex-start;margin-bottom:23px}.grade-card{min-height:165px}.closing-cta{padding:48px 0}.cta-panel{padding:30px 25px;align-items:flex-start;flex-direction:column;border-radius:20px}.cta-panel:after{right:10px;top:-30px;font-size:12rem}.btn-cta{width:100%;text-align:center}.footer-inner{flex-direction:column;align-items:flex-start}.footer-motto{display:none}.footer-copy{white-space:normal}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}



/* ==========================================================
   PENYEMPURNAAN HALAMAN BERANDA — SMP NEGERI 1 BAROS
   Ditambahkan di akhir app.css agar gaya login/dashboard tetap utuh.
   ========================================================== */
body.public-home {
  margin: 0;
  overflow-x: hidden;
  background: #f3f6fa;
  color: #1d2b3a;
  font-family: 'DM Sans','Segoe UI',Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
}
.public-home .topbar {
  min-height: 78px;
  padding: 9px 0;
  background: rgba(16,36,59,.98);
}
.public-home .nav-container,
.public-home .hero-inner { max-width: 1240px; }
.public-home .brand-logo { width: 50px; height: 50px; }
.public-home .brand-copy { font-size: .9rem; }
.public-home .topbar .nav-link {
  padding: .7rem .85rem !important;
  font-size: .88rem;
  border-radius: 8px;
}
.public-home .btn-login-nav {
  padding: 12px 22px;
  font-size: .88rem;
}

/* Banner memakai satu bidang gambar penuh, bukan kolom gambar terpisah. */
.public-home .hero-public {
  min-height: 555px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #eaf4fb;
}
.public-home .hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.public-home .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
.public-home .hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255,255,255,.98) 0%,
    rgba(255,255,255,.94) 30%,
    rgba(255,255,255,.78) 47%,
    rgba(255,255,255,.22) 69%,
    rgba(255,255,255,.04) 100%);
}
.public-home .hero-inner {
  width: 100%;
  padding-top: 78px;
  padding-bottom: 82px;
}
.public-home .hero-copy {
  width: min(590px, 56%);
  max-width: 590px;
  position: relative;
  z-index: 1;
}
.public-home .school-kicker {
  margin-bottom: 18px;
  font-size: .72rem;
  letter-spacing: .18em;
}
.public-home .hero-public h1 {
  margin: 0 0 18px;
  color: #10243b;
  font-family: Manrope,'Segoe UI',sans-serif;
  font-size: clamp(2.8rem,5vw,4.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.public-home .hero-public h1 em { color: #1769aa; }
.public-home .hero-description {
  max-width: 510px;
  margin: 0 0 25px;
  color: #52677c;
  font-size: 1.04rem;
  line-height: 1.75;
}
.public-home .btn-hero,
.public-home .btn-hero-outline {
  min-height: 47px;
  padding: 12px 21px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
}
.public-home .hero-note { margin-top: 19px; font-size: .8rem; }
.public-home .hero-bottom-line { height: 4px; }

/* Area fitur dan judul section */
.public-home .intro-section { padding: 76px 0 80px; }
.public-home .section-heading { max-width: 760px; margin-bottom: 38px; }
.public-home .section-heading h2,
.public-home .class-heading h2 {
  color: #10243b;
  font-family: Manrope,sans-serif;
  font-size: clamp(1.75rem,3vw,2.3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.public-home .section-heading p,
.public-home .class-heading p {
  color: #718096;
  font-size: .96rem;
  line-height: 1.7;
}
.public-home .feature-grid { max-width: 1120px; }
.public-home .feature-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(24,54,83,.055);
  transition: transform .22s ease, box-shadow .22s ease;
}
.public-home .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(24,54,83,.10);
}
.public-home .feature-icon { width: 50px; height: 50px; margin-bottom: 20px; }
.public-home .feature-card h3 {
  color: #10243b;
  font-family: Manrope,sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}
.public-home .feature-card p {
  min-height: 48px;
  color: #718096;
  font-size: .9rem;
  line-height: 1.7;
}
.public-home .feature-link { font-size: .84rem; }

/* Kartu ruang kelas */
.public-home .class-section {
  padding: 74px 0 78px;
  background: #fff;
}
.public-home .class-heading {
  max-width: 1120px;
  margin: 0 auto 28px;
}
.public-home .class-section .row {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}
.public-home .grade-card {
  min-height: 215px;
  padding: 25px 26px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(16,36,59,.11);
}
.public-home .grade-card strong {
  font-family: Manrope,sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}
.public-home .grade-number { font-size: 5rem; }

/* Ajakan masuk dan footer */
.public-home .closing-cta { padding: 65px 0; }
.public-home .cta-panel {
  max-width: 1120px;
  padding: 38px 42px;
  border-radius: 20px;
}
.public-home .cta-panel h2 {
  font-family: Manrope,sans-serif;
  font-weight: 800;
}
.public-home .public-footer { padding: 25px 0; }
.public-home .footer-inner { max-width: 1120px; }
.public-home .footer-inner img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.public-home .footer-inner strong { font-size: .8rem; }
.public-home .footer-inner span,
.public-home .footer-copy,
.public-home .footer-motto { font-size: .78rem; }

/* Tablet */
@media (max-width: 991.98px) {
  .public-home .hero-public { min-height: 500px; }
  .public-home .hero-art img { object-position: 58% center; }
  .public-home .hero-copy { width: 62%; }
  .public-home .hero-public h1 { font-size: clamp(2.6rem,6vw,3.7rem); }
  .public-home .topbar .navbar-collapse { padding-top: 12px; }
}

/* Ponsel */
@media (max-width: 767.98px) {
  .public-home .topbar { min-height: 68px; }
  .public-home .brand-logo { width: 44px; height: 44px; }
  .public-home .brand-copy { font-size: .8rem; }
  .public-home .hero-public {
    min-height: 590px;
    align-items: flex-start;
    padding: 0;
  }
  .public-home .hero-inner {
    padding-top: 55px;
    padding-bottom: 235px;
  }
  .public-home .hero-art img {
    object-position: 68% bottom;
    object-fit: cover;
  }
  .public-home .hero-shade {
    background: linear-gradient(180deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 42%,
      rgba(255,255,255,.68) 70%,
      rgba(255,255,255,.12) 100%);
  }
  .public-home .hero-copy { width: 100%; max-width: 560px; }
  .public-home .hero-public h1 { font-size: clamp(2.5rem,10vw,3.5rem); }
  .public-home .hero-description { font-size: .96rem; line-height: 1.65; }
  .public-home .hero-actions { gap: 9px; }
  .public-home .intro-section,
  .public-home .class-section { padding: 55px 0; }
  .public-home .section-heading { margin-bottom: 27px; }
  .public-home .feature-card { min-height: 0; padding: 23px; }
  .public-home .feature-card p { min-height: 0; }
  .public-home .class-heading { display: block; }
  .public-home .grade-card { min-height: 175px; }
  .public-home .cta-panel {
    display: block;
    padding: 29px 25px;
  }
  .public-home .cta-panel p { margin-bottom: 19px; }
  .public-home .btn-cta { display: inline-block; }
  .public-home .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .public-home .footer-motto { display: none; }
}
@media (max-width: 420px) {
  .public-home .hero-public { min-height: 560px; }
  .public-home .hero-inner { padding-bottom: 205px; }
  .public-home .hero-public h1 { font-size: 2.35rem; }
  .public-home .hero-actions { align-items: stretch; flex-direction: column; max-width: 275px; }
  .public-home .btn-hero,
  .public-home .btn-hero-outline { width: 100%; justify-content: center; }
}


/* ==========================================================
   TAMPILAN BERANDA KOMPAK — MENGIKUTI REFERENSI PENGGUNA
   Hanya memengaruhi halaman publik (body.public-home).
   ========================================================== */
body.public-home {
  background: #f4f7fb;
  color: #233247;
  font-family: 'DM Sans','Segoe UI',Arial,sans-serif;
}
body.public-home .topbar {
  min-height: 68px;
  padding: 5px 0;
  background: #10243b;
}
body.public-home .nav-container { max-width: 1240px; }
body.public-home .brand-logo { width: 43px; height: 43px; }
body.public-home .brand-copy { font-size: .82rem; }
body.public-home .brand-copy small { font-size: .56rem; }
body.public-home .topbar .nav-link { font-size: .78rem; padding: .5rem .65rem !important; }
body.public-home .btn-login-nav { padding: 9px 17px; font-size: .78rem; }

/* Hero: copy on the left, school/Garuda artwork on the right. */
body.public-home .hero-public {
  min-height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef6fc;
}
body.public-home .hero-public .hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  display: block;
  opacity: 1;
  z-index: -2;
}
body.public-home .hero-public .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 46%;
}
body.public-home .hero-public .hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    #fff 0%,
    rgba(255,255,255,.99) 30%,
    rgba(255,255,255,.92) 43%,
    rgba(255,255,255,.60) 55%,
    rgba(255,255,255,.08) 76%,
    rgba(255,255,255,0) 100%);
}
body.public-home .hero-inner {
  width: 100%;
  max-width: 1240px;
  padding-top: 48px;
  padding-bottom: 48px;
}
body.public-home .hero-copy {
  width: 49%;
  max-width: 560px;
}
body.public-home .school-kicker {
  margin-bottom: 11px;
  font-size: .62rem;
  letter-spacing: .2em;
}
body.public-home .hero-public h1 {
  margin: 0 0 11px;
  font-size: clamp(2rem,3.3vw,3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
body.public-home .hero-description {
  max-width: 460px;
  margin: 0 0 16px;
  font-size: .82rem;
  line-height: 1.55;
}
body.public-home .hero-actions { gap: 8px; }
body.public-home .btn-hero,
body.public-home .btn-hero-outline {
  min-height: 36px;
  padding: 8px 15px;
  font-size: .75rem;
}
body.public-home .hero-note {
  margin-top: 11px;
  font-size: .68rem;
}
body.public-home .hero-bottom-line { height: 3px; }

/* Compact feature section and three balanced cards. */
body.public-home .intro-section {
  padding: 34px 0 25px;
  background: #f4f7fb;
}
body.public-home .section-heading {
  max-width: 700px;
  margin: 0 auto 20px;
}
body.public-home .section-kicker {
  margin-bottom: 5px;
  font-size: .57rem;
}
body.public-home .section-heading h2,
body.public-home .class-heading h2 {
  margin-bottom: 5px;
  font-size: clamp(1.2rem,2vw,1.65rem);
  line-height: 1.2;
}
body.public-home .section-heading p,
body.public-home .class-heading p {
  font-size: .72rem;
  line-height: 1.5;
}
body.public-home .feature-grid {
  max-width: 1040px;
}
body.public-home .feature-card {
  min-height: 145px;
  padding: 16px 17px 14px;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(24,54,83,.045);
}
body.public-home .feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 1rem;
}
body.public-home .feature-label {
  margin-bottom: 4px;
  font-size: .52rem;
}
body.public-home .feature-card h3 {
  margin-bottom: 4px;
  font-size: .88rem;
}
body.public-home .feature-card p {
  min-height: 0;
  margin-bottom: 7px;
  font-size: .67rem;
  line-height: 1.45;
}
body.public-home .feature-link { font-size: .65rem; }

/* Login/access panel similar to the reference screenshot.
   The button routes to the real login handler; no duplicate auth form is introduced. */
body.public-home .quick-login-section {
  padding: 0 0 28px;
  background: #f4f7fb;
}
body.public-home .quick-login-card {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 17px 22px 19px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(24,54,83,.055);
}
body.public-home .quick-login-kicker {
  margin-bottom: 4px;
  color: #3979a9;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .15em;
}
body.public-home .quick-login-card h2 {
  margin: 0 0 3px;
  color: #10243b;
  font-family: Manrope,sans-serif;
  font-size: 1rem;
  font-weight: 800;
}
body.public-home .quick-login-card p {
  margin: 0 0 11px;
  color: #8795a5;
  font-size: .65rem;
}
body.public-home .quick-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 18px;
  color: #fff;
  background: #1769aa;
  border: 0;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
body.public-home .quick-login-button:hover {
  color: #fff;
  background: #12588f;
}

/* Keep class links and footer below the compact first-screen layout. */
body.public-home .class-section {
  padding: 45px 0;
}
body.public-home .class-heading { margin-bottom: 20px; }
body.public-home .grade-card { min-height: 165px; }
body.public-home .closing-cta { padding: 38px 0; }
body.public-home .cta-panel { padding: 27px 32px; }
body.public-home .public-footer { padding: 18px 0; }

/* Tablet */
@media (max-width: 991.98px) {
  body.public-home .hero-public { min-height: 330px; }
  body.public-home .hero-public .hero-art { width: 72%; }
  body.public-home .hero-copy { width: 55%; }
  body.public-home .hero-public h1 { font-size: clamp(1.9rem,4.8vw,2.7rem); }
}

/* Mobile */
@media (max-width: 767.98px) {
  body.public-home .topbar { min-height: 64px; }
  body.public-home .hero-public { min-height: 440px; align-items: flex-start; }
  body.public-home .hero-public .hero-art {
    inset: 0;
    width: 100%;
    opacity: .38;
  }
  body.public-home .hero-public .hero-art img {
    object-fit: cover;
    object-position: 72% bottom;
  }
  body.public-home .hero-public .hero-shade {
    background: linear-gradient(180deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 44%,
      rgba(255,255,255,.72) 75%,
      rgba(255,255,255,.20) 100%);
  }
  body.public-home .hero-inner { padding: 43px 24px 185px; }
  body.public-home .hero-copy { width: 100%; }
  body.public-home .hero-public h1 { font-size: clamp(2rem,9vw,2.8rem); }
  body.public-home .hero-description { max-width: 430px; font-size: .78rem; }
  body.public-home .hero-actions { flex-direction: row; flex-wrap: wrap; }
  body.public-home .intro-section { padding: 30px 0 22px; }
  body.public-home .feature-card { min-height: 0; }
  body.public-home .quick-login-card { width: 100%; }
  body.public-home .class-section { padding: 38px 0; }
  body.public-home .grade-card { min-height: 150px; }
  body.public-home .cta-panel { display: block; padding: 24px; }
  body.public-home .btn-cta { display: inline-block; margin-top: 14px; }
  body.public-home .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================
   SLIM LAYOUT UPDATE — narrower, centered content
   Scope: public homepage only. Login/dashboard remain unchanged.
   ========================================================== */
body.public-home .nav-container {
  max-width: 1080px;
  padding-left: 22px;
  padding-right: 22px;
}
body.public-home .hero-public {
  min-height: 310px;
}
body.public-home .hero-inner {
  max-width: 1000px;
  padding-top: 42px;
  padding-bottom: 42px;
}
body.public-home .hero-copy {
  width: 47%;
  max-width: 465px;
}
body.public-home .hero-public .hero-art {
  width: 60%;
}
body.public-home .hero-public .hero-art img {
  object-position: 78% 44%;
}
body.public-home .hero-public h1 {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
}
body.public-home .hero-description {
  max-width: 420px;
  font-size: .78rem;
}
body.public-home .intro-section .container,
body.public-home .class-section .container,
body.public-home .closing-cta .container,
body.public-home .public-footer .container {
  max-width: 960px;
}
body.public-home .section-heading {
  max-width: 650px;
  margin-bottom: 18px;
}
body.public-home .feature-grid {
  max-width: 900px;
}
body.public-home .feature-card {
  min-height: 138px;
  padding: 15px 16px 13px;
}
body.public-home .class-heading,
body.public-home .class-section .row {
  max-width: 900px;
}
body.public-home .grade-card {
  min-height: 150px;
  padding: 21px 22px;
}
body.public-home .quick-login-card {
  width: min(100%, 390px);
}
body.public-home .cta-panel {
  max-width: 900px;
  padding: 25px 30px;
}
body.public-home .footer-inner {
  max-width: 900px;
}

/* Keep the narrower proportions on laptop/tablet widths. */
@media (max-width: 991.98px) {
  body.public-home .hero-public { min-height: 300px; }
  body.public-home .hero-inner { max-width: 900px; }
  body.public-home .hero-copy { width: 52%; }
  body.public-home .hero-public .hero-art { width: 62%; }
  body.public-home .intro-section .container,
  body.public-home .class-section .container,
  body.public-home .closing-cta .container,
  body.public-home .public-footer .container { max-width: 900px; }
}

/* On phones, use normal full-width gutters rather than fixed narrow columns. */
@media (max-width: 767.98px) {
  body.public-home .hero-public { min-height: 420px; }
  body.public-home .hero-inner {
    max-width: 100%;
    padding: 40px 22px 175px;
  }
  body.public-home .hero-copy { width: 100%; max-width: 520px; }
  body.public-home .hero-public .hero-art { width: 100%; }
  body.public-home .intro-section .container,
  body.public-home .class-section .container,
  body.public-home .closing-cta .container,
  body.public-home .public-footer .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  body.public-home .feature-grid,
  body.public-home .class-heading,
  body.public-home .class-section .row {
    max-width: 100%;
  }
  body.public-home .quick-login-card { width: 100%; }
  body.public-home .cta-panel { max-width: 100%; }
}
/* Layout website terpusat */
body.public-home {
    background: #eaf2fc;
}

body.public-home main {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    background: #f4f7fb;
}

body.public-home .hero-public,
body.public-home .intro-section,
body.public-home .class-section,
body.public-home .closing-cta {
    width: 100%;
}

body.public-home .hero-inner,
body.public-home .intro-section .container,
body.public-home .class-section .container,
body.public-home .closing-cta .container {
    max-width: 100%;
    margin: 0 auto;
}

body.public-home .public-footer .container {
    max-width: 1150px;
    margin: auto;
}

@media (max-width: 767px) {
    body.public-home main {
        width: 100%;
    }
}


/* ==========================================================
   PERBAIKAN FINAL BERANDA — SEMUA BAGIAN DALAM SATU LEBAR
   Tempel sebagai bagian paling akhir app.css.
   ========================================================== */

/* Latar luar menjadi ruang kosong kiri dan kanan halaman. */
html, body.public-home {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body.public-home {
  background: #eaf2fc !important;
}

/* Navbar, isi halaman, dan footer dibatasi pada lebar yang sama. */
body.public-home > nav.topbar,
body.public-home > main,
body.public-home > footer.public-footer {
  width: 100% !important;
  max-width: 1150px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hilangkan kemungkinan section atau container melewati batas main. */
body.public-home > main {
  display: block;
  overflow: hidden;
  background: #f4f7fb;
}

body.public-home > main > section {
  width: 100%;
  max-width: 100%;
}

/* Navbar tetap rapi di dalam halaman terpusat. */
body.public-home > nav.topbar {
  min-height: 68px;
  padding: 5px 0;
  background: #10243b;
}

body.public-home .nav-container {
  max-width: 1050px;
  padding-left: 22px;
  padding-right: 22px;
}

/* Banner ikut lebar halaman, bukan lebar monitor. */
body.public-home .hero-public {
  width: 100%;
  min-height: 355px;
  position: relative;
  overflow: hidden;
}

body.public-home .hero-public .hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 67%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

body.public-home .hero-public .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 45%;
}

body.public-home .hero-public .hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    #fff 0%,
    rgba(255,255,255,.98) 29%,
    rgba(255,255,255,.88) 44%,
    rgba(255,255,255,.48) 59%,
    rgba(255,255,255,.04) 82%,
    transparent 100%);
}

body.public-home .hero-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

body.public-home .hero-copy {
  width: 49%;
  max-width: 470px;
}

body.public-home .school-kicker {
  font-size: .68rem;
  margin-bottom: 13px;
}

body.public-home .hero-public h1 {
  font-size: clamp(2.15rem, 3.5vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 13px;
}

body.public-home .hero-description {
  max-width: 430px;
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

body.public-home .btn-hero,
body.public-home .btn-hero-outline {
  min-height: 39px;
  padding: 9px 17px;
  font-size: .8rem;
}

body.public-home .hero-note {
  margin-top: 13px;
  font-size: .73rem;
}

/* Semua isi section menggunakan lebar konten yang seragam. */
body.public-home .intro-section,
body.public-home .class-section,
body.public-home .closing-cta {
  width: 100%;
  padding-top: 43px;
  padding-bottom: 43px;
}

body.public-home .intro-section .container,
body.public-home .class-section .container,
body.public-home .closing-cta .container,
body.public-home .public-footer .container {
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

body.public-home .section-heading {
  max-width: 720px;
  margin: 0 auto 24px;
}

body.public-home .section-kicker {
  font-size: .62rem;
  margin-bottom: 7px;
}

body.public-home .section-heading h2,
body.public-home .class-heading h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 7px;
}

body.public-home .section-heading p,
body.public-home .class-heading p {
  font-size: .82rem;
  line-height: 1.6;
}

/* Kartu fitur dibuat cukup besar agar teks terbaca. */
body.public-home .feature-grid {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.public-home .feature-card {
  min-height: 165px;
  padding: 19px 19px 17px;
  border-radius: 15px;
}

body.public-home .feature-icon {
  width: 39px;
  height: 39px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

body.public-home .feature-label {
  font-size: .58rem;
  margin-bottom: 5px;
}

body.public-home .feature-card h3 {
  font-size: .98rem;
  margin-bottom: 6px;
}

body.public-home .feature-card p {
  min-height: 0;
  font-size: .76rem;
  line-height: 1.55;
  margin-bottom: 9px;
}

body.public-home .feature-link {
  font-size: .73rem;
}

/* Ruang kelas dan kartu kelas tetap berada di tengah. */
body.public-home .class-heading,
body.public-home .class-section .row {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.public-home .class-heading {
  margin-bottom: 20px;
}

body.public-home .grade-card {
  min-height: 165px;
  padding: 21px 22px;
}

body.public-home .grade-card strong {
  font-size: 1rem;
}

/* Panel ajakan masuk dan footer mengikuti lebar konten. */
body.public-home .cta-panel {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 27px 32px;
}

body.public-home .public-footer {
  padding: 18px 0;
  background: #fff;
}

body.public-home .footer-inner {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet: gunakan ruang layar dengan proporsi yang seimbang. */
@media (max-width: 991.98px) {
  body.public-home > nav.topbar,
  body.public-home > main,
  body.public-home > footer.public-footer {
    max-width: 100% !important;
  }

  body.public-home .hero-public {
    min-height: 330px;
  }

  body.public-home .hero-inner {
    max-width: 850px;
  }

  body.public-home .hero-copy {
    width: 54%;
  }

  body.public-home .intro-section .container,
  body.public-home .class-section .container,
  body.public-home .closing-cta .container,
  body.public-home .public-footer .container {
    max-width: 850px;
  }
}

/* Ponsel: seluruh konten kembali memenuhi lebar layar secara responsif. */
@media (max-width: 767.98px) {
  body.public-home > nav.topbar,
  body.public-home > main,
  body.public-home > footer.public-footer {
    max-width: 100% !important;
  }

  body.public-home .hero-public {
    min-height: 440px;
    align-items: flex-start;
  }

  body.public-home .hero-public .hero-art {
    inset: 0;
    width: 100%;
    opacity: .42;
  }

  body.public-home .hero-public .hero-art img {
    object-fit: cover;
    object-position: 72% bottom;
  }

  body.public-home .hero-public .hero-shade {
    background: linear-gradient(180deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.95) 48%,
      rgba(255,255,255,.65) 78%,
      rgba(255,255,255,.18) 100%);
  }

  body.public-home .hero-inner {
    max-width: 100%;
    padding: 42px 22px 175px;
  }

  body.public-home .hero-copy {
    width: 100%;
    max-width: 520px;
  }

  body.public-home .hero-public h1 {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
  }

  body.public-home .hero-description {
    font-size: .86rem;
  }

  body.public-home .intro-section,
  body.public-home .class-section,
  body.public-home .closing-cta {
    padding: 34px 0;
  }

  body.public-home .intro-section .container,
  body.public-home .class-section .container,
  body.public-home .closing-cta .container,
  body.public-home .public-footer .container {
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.public-home .feature-card {
    min-height: 0;
  }

  body.public-home .class-heading {
    display: block;
  }

  body.public-home .grade-card {
    min-height: 145px;
  }

  body.public-home .cta-panel {
    display: block;
    padding: 24px;
  }

  body.public-home .btn-cta {
    display: inline-block;
    margin-top: 14px;
  }

  body.public-home .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}



/* ==========================================================
   DASHBOARD PREMIUM — SMP NEGERI 1 BAROS
   Semua aturan dibatasi pada .dashboard-premium.
   Tidak mengubah halaman publik, login, atau modul lainnya.
   ========================================================== */
.dashboard-premium {
  --dash-ink: #152b43;
  --dash-muted: #78899b;
  --dash-line: #e7edf3;
  --dash-blue: #2476b7;
  color: var(--dash-ink);
  padding-bottom: 10px;
}
.dashboard-premium .dash-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 0 0 15px;
  border-bottom: 1px solid #e5ebf1;
}
.dashboard-premium .dash-eyebrow {
  margin-bottom: 6px;
  color: #4380aa;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .17em;
}
.dashboard-premium .dash-page-heading h1 {
  margin: 0;
  color: #142b43;
  font-family: Manrope, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.dashboard-premium .dash-page-heading p {
  margin: 4px 0 0;
  color: #8291a1;
  font-size: .78rem;
}
.dashboard-premium .dash-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #e5ebf1;
  border-radius: 999px;
  background: #fff;
  color: #6f8194;
  font-size: .72rem;
  white-space: nowrap;
}
.dashboard-premium .dash-date i { color: #347eae; }

.dashboard-premium .dash-welcome {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 174px;
  margin-bottom: 19px;
  padding: 27px 31px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: linear-gradient(112deg, #142f49 0%, #1b527b 62%, #2677a8 100%);
  box-shadow: 0 12px 28px rgba(22,57,86,.11);
  color: #fff;
}
.dashboard-premium .dash-welcome-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.dashboard-premium .dash-welcome-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #c6dced;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .17em;
}
.dashboard-premium .dash-welcome-kicker span {
  width: 19px;
  height: 2px;
  border-radius: 3px;
  background: #e8bd64;
}
.dashboard-premium .dash-welcome h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.dashboard-premium .dash-welcome p {
  max-width: 640px;
  margin: 0;
  color: #d4e2ed;
  font-size: .83rem;
  line-height: 1.65;
}
.dashboard-premium .dash-user-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 17px;
}
.dashboard-premium .dash-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}
.dashboard-premium .dash-welcome-note {
  color: #d3e3ef;
  font-size: .68rem;
}
.dashboard-premium .dash-welcome-note i { color: #f0ca79; margin-right: 4px; }
.dashboard-premium .dash-school-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  margin-left: 25px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 25px;
  background: rgba(255,255,255,.13);
  color: #fff;
  backdrop-filter: blur(5px);
}
.dashboard-premium .dash-school-mark img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  padding: 5px;
  border-radius: 17px;
  background: #fff;
}
.dashboard-premium .dash-welcome-decoration {
  position: absolute;
  z-index: -1;
  top: -100px;
  right: 80px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.dashboard-premium .dash-welcome-decoration:after {
  content: "";
  position: absolute;
  inset: 27px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}

.dashboard-premium .dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 19px;
}
.dashboard-premium .dash-stat-card {
  min-width: 0;
  padding: 18px 19px 16px;
  border: 1px solid #e8eef4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(24,54,83,.035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dashboard-premium .dash-stat-card:hover {
  transform: translateY(-3px);
  border-color: #d9e6f0;
  box-shadow: 0 12px 25px rgba(24,54,83,.07);
}
.dashboard-premium .dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-premium .dash-stat-icon,
.dashboard-premium .dash-quick-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 1.12rem;
}
.dashboard-premium .dash-stat-indicator {
  color: #a6b5c3;
  font-size: .9rem;
}
.dashboard-premium .dash-stat-value {
  margin-top: 12px;
  color: #142b43;
  font-family: Manrope, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.dashboard-premium .dash-stat-label {
  margin-top: 5px;
  color: #4c6175;
  font-size: .77rem;
  font-weight: 700;
}
.dashboard-premium .dash-stat-hint {
  margin-top: 3px;
  color: #9aa7b4;
  font-size: .66rem;
}
.dashboard-premium .tone-blue { background: #eaf3fb; color: #2476b7; }
.dashboard-premium .tone-green { background: #eaf5f0; color: #27856b; }
.dashboard-premium .tone-gold { background: #fbf3e5; color: #b98229; }
.dashboard-premium .tone-violet { background: #f1edfb; color: #8066b2; }

.dashboard-premium .dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 15px;
  align-items: stretch;
}
.dashboard-premium .dash-section-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid #e7edf3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(24,54,83,.035);
}
.dashboard-premium .dash-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.dashboard-premium .dash-section-heading .dash-eyebrow { margin-bottom: 5px; }
.dashboard-premium .dash-section-heading h3 {
  margin: 0;
  color: #172f48;
  font-family: Manrope, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.dashboard-premium .dash-section-heading p {
  margin: 4px 0 0;
  color: #8b9aaa;
  font-size: .7rem;
}
.dashboard-premium .dash-section-symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #f0f6fb;
  color: #4381ad;
  font-size: 1rem;
}
.dashboard-premium .dash-sparkle {
  background: #fff7e8;
  color: #d39a32;
}
.dashboard-premium .dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.dashboard-premium .dash-quick-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 73px;
  padding: 12px;
  border: 1px solid #e7edf3;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.dashboard-premium .dash-quick-link:hover {
  transform: translateY(-2px);
  border-color: #cfe0ed;
  background: #f9fcff;
  color: inherit;
}
.dashboard-premium .dash-quick-icon {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  font-size: 1rem;
}
.dashboard-premium .dash-quick-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.dashboard-premium .dash-quick-copy strong {
  overflow: hidden;
  color: #203950;
  font-size: .76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-premium .dash-quick-copy small {
  overflow: hidden;
  color: #91a0ae;
  font-size: .64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-premium .dash-quick-arrow {
  flex: 0 0 auto;
  color: #9badbd;
  font-size: .8rem;
  transition: transform .2s ease, color .2s ease;
}
.dashboard-premium .dash-quick-link:hover .dash-quick-arrow {
  transform: translate(2px,-2px);
  color: #2476b7;
}

.dashboard-premium .dash-values-list {
  display: flex;
  flex-direction: column;
}
.dashboard-premium .dash-value-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}
.dashboard-premium .dash-value-item:first-child { padding-top: 0; }
.dashboard-premium .dash-value-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.dashboard-premium .dash-value-item > span {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #edf5fb;
  color: #2877ae;
  font-size: .62rem;
  font-weight: 800;
}
.dashboard-premium .dash-value-item div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.dashboard-premium .dash-value-item strong {
  color: #263e55;
  font-size: .72rem;
  font-weight: 800;
}
.dashboard-premium .dash-value-item small {
  color: #8c9baa;
  font-size: .64rem;
  line-height: 1.45;
}
.dashboard-premium .dash-bottom-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 12px 15px;
  border: 1px solid #e9eef3;
  border-radius: 12px;
  background: #f9fbfd;
  color: #7e8d9c;
  font-size: .69rem;
}
.dashboard-premium .dash-bottom-note i {
  color: #c18a27;
  font-size: .95rem;
}
.dashboard-premium .dash-bottom-note strong { color: #43596e; }

@media (max-width: 1199.98px) {
  .dashboard-premium .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-premium .dash-main-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); }
}
@media (max-width: 991.98px) {
  .dashboard-premium .dash-main-grid { grid-template-columns: 1fr; }
  .dashboard-premium .dash-values-card { order: 2; }
  .dashboard-premium .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .dashboard-premium { padding-bottom: 4px; }
  .dashboard-premium .dash-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
  }
  .dashboard-premium .dash-page-heading h1 { font-size: 1.4rem; }
  .dashboard-premium .dash-welcome {
    min-height: 0;
    padding: 22px 19px;
    border-radius: 16px;
  }
  .dashboard-premium .dash-welcome h2 { max-width: 270px; font-size: 1.22rem; }
  .dashboard-premium .dash-welcome p { max-width: 330px; font-size: .75rem; }
  .dashboard-premium .dash-school-mark { display: none; }
  .dashboard-premium .dash-welcome-note { width: 100%; }
  .dashboard-premium .dash-stats { gap: 10px; margin-bottom: 14px; }
  .dashboard-premium .dash-stat-card { padding: 14px; border-radius: 14px; }
  .dashboard-premium .dash-stat-icon { width: 37px; height: 37px; }
  .dashboard-premium .dash-stat-value { font-size: 1.7rem; }
  .dashboard-premium .dash-stat-label { font-size: .7rem; }
  .dashboard-premium .dash-stat-hint { font-size: .6rem; }
  .dashboard-premium .dash-section-card { padding: 17px; border-radius: 15px; }
  .dashboard-premium .dash-quick-grid { grid-template-columns: 1fr; gap: 9px; }
  .dashboard-premium .dash-quick-link { min-height: 66px; }
  .dashboard-premium .dash-bottom-note { align-items: flex-start; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-premium *,
  .dashboard-premium *::before,
  .dashboard-premium *::after { transition: none !important; }
}



/* ==========================================================
   GLOBAL SPACING SYSTEM — SELURUH APLIKASI RUANG BELAJAR
   Konsisten untuk admin, guru, siswa, materi, tugas, nilai,
   AI pada materi, halaman login, dan pendaftaran.
   ========================================================== */
:root {
  --app-shell-max: 1320px;
  --app-shell-gutter: 40px;
  --app-shell-mobile-gutter: 24px;
}
html, body { max-width: 100%; overflow-x: clip; }
body:not(.public-home):not(.login-page) {
  background: #f3f6fa;
}
body:not(.public-home):not(.login-page) .topbar {
  width: min(calc(100% - var(--app-shell-gutter)), var(--app-shell-max));
  max-width: var(--app-shell-max);
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
  overflow: visible;
}
body:not(.public-home):not(.login-page) .app-container {
  width: min(calc(100% - var(--app-shell-gutter)), var(--app-shell-max));
  max-width: var(--app-shell-max);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body:not(.public-home):not(.login-page) .app-main {
  min-height: calc(100vh - 170px);
}
body:not(.public-home):not(.login-page) .footer-container {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.app-main > *, .app-main .row, .app-main .card,
.app-main .panel, .app-main .content-card,
.app-main .table-responsive, .app-main form {
  min-width: 0;
  max-width: 100%;
}
.app-main .table-responsive { overflow-x: auto; }
@media (max-width: 767.98px) {
  :root { --app-shell-gutter: var(--app-shell-mobile-gutter); }
  body:not(.public-home):not(.login-page) .topbar {
    border-radius: 0 0 12px 12px;
  }
  body:not(.public-home):not(.login-page) .app-main {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }
}
