/* ==============================================================
   GARUDA SAKTI — TAHAP 5D | PORTAL UI REFINEMENT
   Visual override ONLY. PHP, data, roles, forms and SQL untouched.
   Load AFTER style.css, sidebar-group.css and garuda-premium.css.
   ============================================================== */
body.theme-gs-pro{
  --gs5d-midnight:#0a1724;
  --gs5d-forest:#072e29;
  --gs5d-green:#0c806f;
  --gs5d-gold:#e5be63;
  --gs5d-ink:#13243b;
  --gs5d-muted:#617186;
  --gs5d-border:#dce9e6;
  --gs5d-radius:18px;
  --gs5d-ease:cubic-bezier(.2,.7,.25,1);
  color:var(--gs5d-ink);
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}
body.theme-gs-pro:where(.app-body,.login-body){background:#eff5f3}
.theme-gs-pro a:focus-visible,
.theme-gs-pro button:focus-visible,
.theme-gs-pro summary:focus-visible,
.theme-gs-pro input:focus-visible,
.theme-gs-pro select:focus-visible,
.theme-gs-pro textarea:focus-visible{
  outline:3px solid var(--gs5d-gold);outline-offset:3px;
}

/* --- 1. Desktop shell and menu --- */
.theme-gs-pro .app-shell{
  grid-template-columns:264px minmax(0,1fr);
  background:linear-gradient(90deg,var(--gs5d-forest) 0 264px,#eff5f3 264px);
}
.theme-gs-pro .sidebar.sidebar-grouped{
  background:linear-gradient(170deg,#071d21 0%,#063a32 64%,#071725 100%);
  padding:18px 13px 20px;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#39665e transparent;
  border-right:1px solid rgba(232,194,99,.2);
  box-shadow:6px 0 25px rgba(2,15,23,.10);
}
.theme-gs-pro .premium-brand{
  align-items:center;gap:10px;margin:0 2px 12px;
  padding:8px 7px 15px;
}
.theme-gs-pro .brand-logo-img{
  flex:0 0 50px;width:50px;height:50px;border-radius:13px;
  background:#fff;padding:2px;overflow:hidden;
  box-shadow:0 7px 16px rgba(0,0,0,.16);
}
.theme-gs-pro .brand-logo-img img{width:100%;height:100%;object-fit:contain;border-radius:10px}
.theme-gs-pro .brand-title{
  font-size:18px;line-height:1.18;letter-spacing:-.035em;white-space:normal;
}
.theme-gs-pro .brand-sub{
  margin-top:4px;font-size:9px;line-height:1.38;
  font-weight:700;letter-spacing:.065em;color:#c7d8d7;
}
.theme-gs-pro .official-strip{
  min-height:45px;margin:0 3px 15px;padding:7px 9px;
  gap:8px;border-radius:11px;background:rgba(255,255,255,.052);
  font-size:9px;line-height:1.45;letter-spacing:.045em;
}
.theme-gs-pro .official-strip img{
  flex:0 0 29px;width:29px;height:29px;padding:3px;border-radius:8px;
}
.theme-gs-pro .official-strip span{min-width:0;overflow-wrap:anywhere}
.theme-gs-pro .side-nav.grouped-nav{gap:5px}
.theme-gs-pro .side-nav .nav-single,
.theme-gs-pro .nav-group>summary{
  padding:10px 11px!important;border-radius:11px!important;
  min-height:42px;font-weight:750;font-size:12.5px;
  line-height:1.42;letter-spacing:0;
}
.theme-gs-pro .grouped-nav .nav-single{margin-bottom:3px}
.theme-gs-pro .grouped-nav .nav-single b,
.theme-gs-pro .grouped-nav .nav-group summary b{
  flex:0 0 21px;min-width:21px;width:21px;
  font-size:14px;line-height:1;
}
.theme-gs-pro .nav-group>summary em{
  font-style:normal;min-width:0;overflow-wrap:break-word;
}
.theme-gs-pro .nav-group>summary:after{
  margin-left:auto;flex:0 0 12px;text-align:center;
  font-size:20px;opacity:.8;
}
.theme-gs-pro .nav-group.active-group>summary,
.theme-gs-pro .side-nav a.active{
  background:rgba(255,255,255,.13);border-color:rgba(229,190,99,.23);
}
.theme-gs-pro .nav-sub{
  margin:5px 0 9px 16px;padding-left:10px;gap:3px;
  border-left:1px solid rgba(229,190,99,.30);
}
.theme-gs-pro .nav-sub a{
  padding:8px 9px!important;min-height:35px;border-radius:9px;
  font-size:12px;line-height:1.45;font-weight:650;
  transition:background .16s var(--gs5d-ease);
}
.theme-gs-pro .nav-sub a b{flex:0 0 11px;min-width:11px;font-size:11px}
.theme-gs-pro .side-note{
  margin:14px 3px 0;padding:9px 12px;border-radius:10px;
  box-shadow:none;background:rgba(229,190,99,.075);
}
.theme-gs-pro .side-note strong{font-size:11px}
.theme-gs-pro .side-note span{font-size:10px}

/* --- 2. Compact header / hero: avoid repeated organization logo --- */
.theme-gs-pro .main{min-width:0;background:transparent}
.theme-gs-pro .premium-topbar,
.theme-gs-pro .topbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;min-height:142px;
  padding:22px 30px 24px;
  background:linear-gradient(115deg,#091827 0%,#103a3d 57%,#126a5d 100%);
}
.theme-gs-pro .premium-topbar:before{
  width:230px;height:230px;right:23%;top:-125px;opacity:.5;
}
.theme-gs-pro .premium-topbar:after{
  width:230px;height:230px;bottom:-130px;right:-95px;opacity:.56;
}
.theme-gs-pro .topbar-copy{min-width:0;max-width:720px}
.theme-gs-pro .topbar .eyebrow{
  display:block;font-size:10.5px;letter-spacing:.13em;
  color:#ffda83;font-weight:850;text-transform:uppercase;
}
.theme-gs-pro .topbar h1{
  margin:6px 0 6px;font-size:clamp(25px,2.25vw,34px);
  line-height:1.12;letter-spacing:-.035em;font-weight:850;
}
.theme-gs-pro .topbar p{
  margin:0;color:#cfe5e2;font-size:12.5px;
  line-height:1.4;max-width:530px;
}
.theme-gs-pro .topbar-tagline{display:none}
.theme-gs-pro .top-actions{flex:0 1 auto;gap:9px;align-items:center;justify-content:flex-end;min-width:0}
.theme-gs-pro .topbar-logos{display:none} /* organization logos remain in sidebar */
.theme-gs-pro .user-pill{
  max-width:min(330px,35vw);min-width:0;
  gap:9px;padding:9px 12px;border-radius:13px;
  box-shadow:none;background:rgba(255,255,255,.095);
}
.theme-gs-pro .user-pill>div:last-child{min-width:0}
.theme-gs-pro .user-pill strong{
  display:block;max-width:245px;font-size:12.5px;
  line-height:1.4;overflow-wrap:break-word;
}
.theme-gs-pro .user-pill span{font-size:11px;color:#d3e9e5}
.theme-gs-pro .avatar{
  flex:0 0 36px;width:36px;height:36px;border-radius:11px;font-size:12px;
}
.theme-gs-pro .top-actions>.btn.danger{
  flex:none;padding:10px 13px;min-height:40px;
  font-size:12px;border-radius:11px;background:#ffe7e5;color:#9e251e;
}
.theme-gs-pro .gold-line{
  height:3px;background:linear-gradient(90deg,#a88132,#eacc72,#b78c31);
}

/* --- 3. Dashboard cards, dashboard profile and controls --- */
.theme-gs-pro .content{padding:24px clamp(18px,2.5vw,34px) 48px;min-width:0}
.theme-gs-pro .card,.theme-gs-pro .hero-card{
  border-radius:var(--gs5d-radius);border:1px solid var(--gs5d-border);
  background:#fff;box-shadow:0 8px 25px rgba(11,40,45,.055);
  padding:22px;
}
.theme-gs-pro .hero-card{background:linear-gradient(145deg,#fff 70%,#f8fdfb)}
.theme-gs-pro .hero-card:before{
  right:-110px;top:-100px;width:210px;height:210px;
  background:rgba(13,128,111,.06);
}
.theme-gs-pro .section-title{gap:16px;flex-wrap:wrap}
.theme-gs-pro .section-title h2{
  font-size:clamp(20px,1.65vw,25px);font-weight:850;
  letter-spacing:-.028em;line-height:1.22;
}
.theme-gs-pro .section-title p{font-size:13px;line-height:1.55}
.theme-gs-pro .grid{gap:14px}
.theme-gs-pro .mt{margin-top:17px}
.theme-gs-pro .stat{
  min-width:0;padding:17px 18px;border-radius:14px;
  border-left-width:4px;
  box-shadow:none;
}
.theme-gs-pro .stat small{
  font-size:11.5px;font-weight:750;color:#63758a;line-height:1.4;
}
.theme-gs-pro .stat strong{
  margin:6px 0 3px;font-size:clamp(24px,2.1vw,33px);
  letter-spacing:-.055em;line-height:1.18;overflow-wrap:anywhere;
}
.theme-gs-pro .stat span{font-size:11.5px;line-height:1.45;display:block}
.theme-gs-pro .stat:after{width:100px;height:100px;right:-56px;top:-63px}
.theme-gs-pro .quick-card{
  border-radius:13px;padding:15px 16px;border-color:var(--gs5d-border);
  background:#fff;box-shadow:none;
}
.theme-gs-pro .quick-card strong{font-size:13px;line-height:1.4}
.theme-gs-pro .quick-card span{font-size:11.5px;line-height:1.45}
.theme-gs-pro .tools,.theme-gs-pro .row-actions{gap:8px}
.theme-gs-pro .btn,
.theme-gs-pro button:not(.gs5d-mobile-toggle){
  min-height:41px;padding:10px 15px;
  font-size:12.5px;font-weight:750;
  line-height:1.35;border-radius:10px;
  box-shadow:none;
}
.theme-gs-pro .btn.small{
  min-height:34px;padding:7px 11px;font-size:11.5px;border-radius:9px;
}
.theme-gs-pro .btn.light{background:#eaf1f4;color:#1b2c40}
.theme-gs-pro .btn:hover{filter:brightness(1.03)}
.theme-gs-pro .badge{font-size:11px;padding:6px 9px}
.theme-gs-pro .timeline-item{border-radius:11px;padding:11px 13px}
.theme-gs-pro .timeline-item strong{font-size:12.5px}
.theme-gs-pro .timeline-item small{font-size:11.5px;line-height:1.55}
.theme-gs-pro .table-wrap{border-radius:13px}
.theme-gs-pro th,.theme-gs-pro td{padding:11px 12px;font-size:12px}
.theme-gs-pro th{background:#eaf5f1}
.theme-gs-pro input:not([type="checkbox"]):not([type="radio"]),
.theme-gs-pro select,.theme-gs-pro textarea{
  border-radius:10px;padding:11px 13px;min-height:42px;
  max-width:100%;font-size:13.5px;
}
.theme-gs-pro input[type="checkbox"]{width:auto;min-height:0;accent-color:var(--gs5d-green)}
.theme-gs-pro .form-group label{font-size:12.5px}
.theme-gs-pro .profile-meta{font-size:12.5px;line-height:1.55}
.theme-gs-pro .wali-hero .profile-head{
  display:flex;gap:14px;flex-wrap:wrap;align-items:center;
}
.theme-gs-pro .wali-hero .profile-head>div:nth-child(2){flex:1 1 210px;min-width:0}
.theme-gs-pro .wali-hero .profile-head h2{
  font-size:clamp(20px,1.8vw,27px);line-height:1.23;
  margin:6px 0;font-weight:850;
}
.theme-gs-pro .profile-avatar.large{
  width:62px;height:62px;border-radius:15px;
  font-size:22px;flex:0 0 62px;
}
.theme-gs-pro .wali-hero .profile-head .tools{
  display:flex;justify-content:flex-end;align-items:center;
  flex:1 1 320px;max-width:615px;margin-left:auto;
}
.theme-gs-pro .wali-hero .profile-head .tools .btn{
  white-space:normal;text-align:center;
}
.theme-gs-pro .wali-quick-actions .quick-card{min-height:80px}
.theme-gs-pro .footer{font-size:11px;padding:17px}

/* --- 4. Public login visual, without altering authentication logic --- */
body.theme-gs-pro.login-body{
  min-height:100vh;
  background:radial-gradient(circle at 80% 15%,rgba(229,190,99,.12),transparent 34%),
  linear-gradient(125deg,#061322,#073a34 90%);
}
.theme-gs-pro .premium-login-hero{
  position:relative;isolation:isolate;overflow:hidden;
  background:none;border:0;
}
.theme-gs-pro .premium-login-hero:after{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:260px;height:260px;right:max(6%,calc((100vw - 1010px)/2));top:10px;
  background:url('../img/garuda-sakti-prestasi.webp') center/contain no-repeat;
  opacity:.13;filter:grayscale(1) brightness(1.7);
}
.theme-gs-pro .premium-login-hero .public-hero-inner{
  width:min(100%,970px);padding:34px 24px 10px;
}
.theme-gs-pro .login-brand-row{gap:8px;margin-bottom:8px}
.theme-gs-pro .login-brand-row img{
  width:45px;height:45px;padding:3px;border-radius:11px;
  object-fit:contain;
}
.theme-gs-pro .premium-login-hero h1{
  font-size:clamp(27px,3.2vw,39px);
  margin:7px 0;line-height:1.16;letter-spacing:-.045em;
}
.theme-gs-pro .premium-login-hero p{font-size:14px;line-height:1.45;color:#d6e8e4}
.theme-gs-pro .premium-public-main{
  max-width:485px;margin:19px auto 52px;
  padding:0 16px;
}
.theme-gs-pro .login-card{
  padding:25px 27px;
  border-radius:19px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 65px rgba(0,0,0,.2);
}
.theme-gs-pro .login-top{margin-bottom:12px}
.theme-gs-pro .login-logo{height:39px;width:39px;border-radius:11px;font-size:13px}
.theme-gs-pro .login-card h2{font-size:23px;letter-spacing:-.03em;margin:0 0 7px}
.theme-gs-pro .login-card .muted{font-size:13px;line-height:1.55}
.theme-gs-pro .login-card .pill-soft{font-size:10px}
.theme-gs-pro .login-card .form-group{margin:15px 0}
.theme-gs-pro .login-card .login-hint{font-size:11.5px;line-height:1.6}

/* --- 5. High-density / tablet layouts --- */
@media(max-width:1320px){
  .theme-gs-pro .app-shell{
    grid-template-columns:240px minmax(0,1fr);
    background:linear-gradient(90deg,var(--gs5d-forest) 0 240px,#eff5f3 240px);
  }
  .theme-gs-pro .premium-topbar,.theme-gs-pro .topbar{padding:20px 23px;min-height:135px}
  .theme-gs-pro .content{padding:22px}
  .theme-gs-pro .brand-title{font-size:17px}
  .theme-gs-pro .user-pill{max-width:285px}
  .theme-gs-pro .wali-hero .profile-head .tools{max-width:none;flex-basis:100%;justify-content:flex-start}
}
@media(max-width:1050px) and (min-width:801px){
  .theme-gs-pro .app-shell{
    grid-template-columns:218px minmax(0,1fr);
    background:linear-gradient(90deg,var(--gs5d-forest) 0 218px,#eff5f3 218px);
  }
  .theme-gs-pro .sidebar.sidebar-grouped{padding:15px 9px}
  .theme-gs-pro .topbar{flex-wrap:wrap;min-height:0;gap:12px}
  .theme-gs-pro .top-actions{justify-content:flex-start}
  .theme-gs-pro .user-pill{max-width:min(450px,70vw)}
  .theme-gs-pro .grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* --- 6. Mobile: compact header, accessible collapsible navigation --- */
.gs5d-mobile-toggle{display:none}
@media(max-width:800px){
  .theme-gs-pro .app-shell{display:block;background:#eff5f3}
  .theme-gs-pro .sidebar.sidebar-grouped{
    position:sticky;top:0;z-index:120;height:auto;
    max-height:82vh;overflow-y:auto;
    padding:11px 15px 11px;
    border-right:0;border-bottom:1px solid rgba(229,190,99,.28);
    box-shadow:0 7px 18px rgba(4,24,29,.14);
  }
  .theme-gs-pro .premium-brand{
    padding:4px 0 8px;margin:0 65px 0 0;gap:10px;border:0;
  }
  .theme-gs-pro .brand-logo-img{width:43px;height:43px;flex-basis:43px;border-radius:10px}
  .theme-gs-pro .brand-title{font-size:16px}
  .theme-gs-pro .brand-sub{font-size:9px;letter-spacing:.02em}
  .theme-gs-pro .official-strip{display:none}
  .theme-gs-pro .side-note{display:none}
  .theme-gs-pro .side-nav.grouped-nav{display:grid;grid-template-columns:1fr;gap:5px;margin-top:7px}
  .theme-gs-pro.gs5d-ready .sidebar .side-nav.grouped-nav{display:none}
  .theme-gs-pro.gs5d-ready .sidebar.gs5d-nav-open .side-nav.grouped-nav{display:grid}
  .gs5d-mobile-toggle{
    position:absolute;display:flex;align-items:center;justify-content:center;
    gap:7px;right:14px;top:16px;min-width:66px;height:36px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:9px;background:rgba(255,255,255,.085);
    color:#fff;font:750 12px/1.2 Inter,Arial,sans-serif;
    cursor:pointer;padding:7px 10px;
  }
  .gs5d-mobile-toggle:hover{background:rgba(255,255,255,.16)}
  .theme-gs-pro .premium-topbar,.theme-gs-pro .topbar{
    min-height:0;padding:19px 17px 20px;
    display:flex;flex-direction:column;align-items:flex-start;gap:14px;
  }
  .theme-gs-pro .topbar h1{font-size:clamp(22px,5.3vw,29px);line-height:1.16;margin:5px 0}
  .theme-gs-pro .topbar .eyebrow{font-size:9px}
  .theme-gs-pro .topbar p{font-size:12px}
  .theme-gs-pro .top-actions{
    display:flex;flex-wrap:wrap;gap:9px;
    width:100%;justify-content:space-between;margin-top:0;
  }
  .theme-gs-pro .user-pill{flex:1 1 170px;max-width:none;padding:7px 9px;border-radius:10px}
  .theme-gs-pro .user-pill strong{font-size:12px}
  .theme-gs-pro .avatar{width:32px;height:32px;flex-basis:32px}
  .theme-gs-pro .top-actions>.btn.danger{min-height:35px;padding:8px 11px}
  .theme-gs-pro .content{padding:16px 14px 35px}
  .theme-gs-pro .card,.theme-gs-pro .hero-card{border-radius:15px;padding:17px}
  .theme-gs-pro .grid.cols-4,.theme-gs-pro .grid.cols-3,.theme-gs-pro .grid.cols-2{grid-template-columns:1fr}
  .theme-gs-pro .wali-summary-grid.grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-gs-pro .stat{padding:13px 14px}
  .theme-gs-pro .stat strong{font-size:clamp(20px,5.3vw,28px)}
  .theme-gs-pro .wali-hero .profile-head{align-items:flex-start;gap:11px}
  .theme-gs-pro .wali-hero .profile-head>div:nth-child(2){flex:1 1 calc(100% - 77px)}
  .theme-gs-pro .wali-hero .profile-head .tools{display:flex;width:100%;flex-wrap:wrap}
  .theme-gs-pro .wali-hero .profile-head .tools .btn{flex:1 1 175px;width:auto}
  .theme-gs-pro .section-title{flex-direction:column;align-items:flex-start}
  .theme-gs-pro .section-title .tools{display:flex;flex-wrap:wrap;width:100%}
  .theme-gs-pro .section-title .tools .btn{flex:1 1 145px}
  .theme-gs-pro .login-card{padding:22px}
}
@media(max-width:420px){
  .theme-gs-pro .wali-summary-grid.grid.cols-4{grid-template-columns:1fr 1fr}
  .theme-gs-pro .stat strong{font-size:23px}
  .theme-gs-pro .profile-avatar.large{width:54px;height:54px;flex-basis:54px}
  .theme-gs-pro .premium-login-hero .public-hero-inner{padding:29px 17px 6px}
  .theme-gs-pro .premium-login-hero:after{width:170px;height:170px;right:-30px}
}
@media(prefers-reduced-motion:reduce){
  .theme-gs-pro *{transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{
  .gs5d-mobile-toggle{display:none!important}
  .theme-gs-pro .sidebar,.theme-gs-pro .topbar,.theme-gs-pro .gold-line{display:none!important}
  .theme-gs-pro .app-shell{display:block!important}
  .theme-gs-pro .content{padding:0!important}
  .theme-gs-pro .card,.theme-gs-pro .hero-card{box-shadow:none!important}
}
