:root{
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #2563eb;    /* biru info */
  --accent: #10b981;   /* hijau success */
  --warn: #f59e0b;     /* kuning notice */
  --border: #e5e7eb;
  --shadow: 0 6px 24px rgba(0,0,0,.06);
}

body.no-scroll { overflow: hidden; }

.site-header{
  position: sticky; top: 0; z-index: 1280;
  background: transparent; /* background hanya pada container di dalam */
}

.site-header__container{
  margin: 8px auto 0 auto;
  max-width: 1400px;
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 0px;
  border: 0px solid var(--border);
  transition: box-shadow .2s ease, transform .2s ease;
}

.site-header.is-scrolled .site-header__container{
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.brand{
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
}
.brand__logo{ width: 36px; height: 36px; object-fit: contain; }
.brand__placeholder{
  width: 36px; height: 36px; display: grid; place-items:center;
  background: rgba(37,99,235,.1); color: var(--brand);
  border-radius: 10px; font-weight: 700;
}
.brand__name{ font-weight: 700; letter-spacing: .2px; }

.nav-main{ display: none; }
.nav-main ul{ display: flex; gap: 14px; list-style: none; padding: 0; margin: 0; }
.nav-main a{
  text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.nav-main li.is-active a, .nav-main a:hover{ background: rgba(37,99,235,.08); color: var(--brand); }

.hamburger{
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.hamburger span{ width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.site-header__left{ display: flex; align-items: center; gap: 10px; }
.site-header__right{ display: flex; align-items: center; gap: 10px; }

.icon-btn{
  position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text);
}
.badge{
  position: absolute; top: -6px; right: -6px; background: var(--brand); color: #fff;
  border-radius: 12px; padding: 2px 6px; font-size: 11px; line-height: 1; border: 2px solid #fff;
}

.auth-group{ display: flex; gap: 8px; }
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); color: var(--text); background: #fff; transition: transform .08s ease, background .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--solid{ background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--solid:hover{ filter: brightness(0.96); }
.btn--ghost:hover{ background: rgba(31,41,55,.06); }
.w-100{ width: 100%; }

.avatar-wrap{ position: relative; }
.avatar-btn{
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; overflow: hidden;
  display: grid; place-items: center;
}
.avatar-img{ width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback{
  width: 100%; height: 100%; display: grid; place-items: center; background: rgba(16,185,129,.1); color: var(--accent); font-weight: 700;
}

.dropdown{
  position: absolute; right: 0; margin-top: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; min-width: 220px;
  padding: 8px; box-shadow: var(--shadow); display: none;
}
.dropdown[aria-hidden="false"]{ display: block; }
.dropdown a, .dropdown .logout-btn{
  display: block; width: 100%; text-align: left; color: var(--text); text-decoration: none;
  padding: 10px 12px; border-radius: 8px; background: transparent; border: none; cursor: pointer;
}
.dropdown a:hover, .dropdown .logout-btn:hover{ background: rgba(31,41,55,.06); }
.logout-form{ margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 6px; }

.drawer{
  position: fixed; top: 0; right: 0; width: min(92vw, 380px); height: 100dvh; background: #fff; border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .2s ease; z-index: 1100; display: flex; flex-direction: column;
}
.drawer[aria-hidden="false"]{ transform: translateX(0); }
.drawer__header{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px; border-bottom: 1px solid var(--border);
}
.drawer__header h3{ margin: 0; font-size: 16px; }
.drawer__close{
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer;
}
.drawer__body{ padding: 10px 14px; overflow: auto; }
.drawer__footer{ padding: 10px 14px 14px; border-top: 1px solid var(--border); }

.notif-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notif-list li{ border: 1px solid var(--border); border-radius: 10px; }
.notif-list li.is-unread{ border-color: rgba(37,99,235,.35); background: rgba(37,99,235,.05); }
.notif-list a{ display: block; padding: 10px 12px; color: inherit; text-decoration: none; }
.notif__title{ font-weight: 600; }
.notif__time{ font-size: 12px; color: var(--muted); margin-top: 2px; }
.notif__snippet{ font-size: 13px; color: var(--text); margin-top: 6px; }
.empty{ color: var(--muted); padding: 16px; text-align: center; }

.drawer__brand{ display: flex; align-items: center; gap: 10px; }
.drawer__brand img{ width: 32px; height: 32px; object-fit: contain; }
.drawer__user{ display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.drawer__avatar img{ width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); }
.drawer__avatar .avatar-fallback{
  width: 48px; height: 48px; display: grid; place-items:center; border-radius: 50%; background: rgba(16,185,129,.1); color: var(--accent); font-weight: 700;
}
.drawer__name{ font-weight: 600; }
.chip{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: rgba(31,41,55,.06); font-size: 12px; }

.drawer__nav ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.drawer__nav a{
  display: block; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--text); border: 1px solid var(--border); background: #fff;
}
.drawer__nav li.is-active a, .drawer__nav a:hover{ background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.35); }

.drawer__auth, .drawer__links{ margin-top: 12px; display: grid; gap: 8px; }

/* Desktop breakpoint */
@media (min-width: 992px){
  .hamburger{ display: none; }
  .nav-main{ display: block; }
}
