:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
}
html, body {
  font-family: 'Segoe UI Light', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 300;
}
body.app-body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(59, 130, 246, 0.18), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(14, 165, 233, 0.16), transparent 45%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 48%, #f8fafc 100%);
  min-height: 100vh;
  color: #0f172a;
}
body.public-batik {
  isolation: isolate;
  background-color: #ffffff;
  background-image: none;
}
body.public-batik::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/kufi-labirin.jpg");
  background-repeat: repeat;
  background-size: 640px auto;
  background-position: center top;
  opacity: 0.15;
}
body.public-batik .glass,
body.public-batik .glass-strong {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.glass {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.08);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1);
}
.btn-brand {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-brand:hover { filter: brightness(1.05); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2563eb;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(147, 197, 253, .5);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(239, 246, 255, .7); }
.jadwal-grid th, .jadwal-grid td { min-width: 118px; }
.jadwal-slot {
  background: rgba(239, 246, 255, .85);
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 12px;
  padding: 8px 10px;
}
[x-cloak] { display: none !important; }
.public-shell {
  width: min(100%, 120rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 3rem);
  padding-right: clamp(1rem, 2.5vw, 3rem);
}
.banner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-height: 360px;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #dbeafe;
}
@media (min-width: 768px) {
  .banner-stage { max-height: 480px; }
}
@media (min-width: 1024px) {
  .banner-stage { max-height: 540px; }
}
@media (min-width: 1280px) {
  .banner-stage { max-height: 600px; }
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}
.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37,99,235,.18);
}
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }
.banner-stage:not(.is-ready) .banner-slide:first-child {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.post-ticker {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(191,219,254,.85);
  box-shadow: 0 8px 24px rgba(37,99,235,.08);
  min-height: 42px;
}
.post-ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}
.post-ticker-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.post-ticker-track {
  display: flex;
  width: max-content;
  animation: post-ticker-scroll 28s linear infinite;
}
.post-ticker:hover .post-ticker-track {
  animation-play-state: paused;
}
.post-ticker-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  white-space: nowrap;
  color: #1e3a8a;
  font-size: 14px;
}
.post-ticker-item:hover { color: #1d4ed8; }
.post-ticker-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.post-ticker-empty {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: #64748b;
  font-size: 13px;
}
@keyframes post-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .post-ticker-track { animation: none; }
}
.public-sidebar { width: 100%; }
@media (min-width: 1024px) {
  .public-sidebar { min-width: 16.5rem; width: 16.5rem; }
}
@media (min-width: 1440px) {
  .public-sidebar { min-width: 18.5rem; width: 18.5rem; }
}
@media (min-width: 1920px) {
  .public-sidebar { min-width: 20rem; width: 20rem; }
}
.menu-tile .menu-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(59,130,246,.16), rgba(37,99,235,.08));
}
.android-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 10px 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(191,219,254,.85);
  box-shadow: 0 12px 40px rgba(37,99,235,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.android-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #64748b;
  font-size: 10px;
  min-width: 52px;
  transition: color .25s ease, transform .25s ease;
}
.android-nav a svg { width: 22px; height: 22px; }
.android-nav a.is-active { color: #1d4ed8; transform: translateY(-1px); }
.android-nav .nav-center { margin-top: -22px; }
.android-nav .nav-fab {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
  border: 3px solid rgba(255,255,255,.85);
}
.android-nav .nav-fab svg { width: 24px; height: 24px; }
.sidebar-link.active, .sidebar-link:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
input, select, textarea {
  font-family: inherit;
}
.card-photo {
  object-fit: cover;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(191,219,254,.8);
  color: #334155;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,.12);
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
