/* ==========================================================================
   MATERIAL 3 EXPRESSIVE DESIGN TOKENS (BPIBS IDENTITY)
   ========================================================================== */
:root {
  --md-sys-color-primary: #274FE8;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #DEE1FF;
  --md-sys-color-on-primary-container: #001159;

  --md-sys-color-secondary: #4B5D78;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #D3E4FF;
  --md-sys-color-on-secondary-container: #041C35;

  --md-sys-color-tertiary: #845400;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #FFDEA7;
  --md-sys-color-on-tertiary-container: #2A1700;

  --md-sys-color-error: #BA1A1A;
  --md-sys-color-error-container: #FFDAD6;
  --md-sys-color-on-error-container: #410002;

  --badge-sabtu-bg: #D5F5E3;
  --badge-sabtu-fg: #0B532C;
  --badge-ahad-bg: #EDE2FF;
  --badge-ahad-fg: #3B1278;

  --md-sys-color-background: #F4F6FC;
  --md-sys-color-on-background: #141824;
  --md-sys-color-surface: #F4F6FC;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #EEF1FA;
  --md-sys-color-surface-container: #E5EAF6;
  --md-sys-color-surface-container-high: #DCE3F2;
  --md-sys-color-on-surface: #141824;
  --md-sys-color-on-surface-variant: #44495A;
  --md-sys-color-outline: #73778A;
  --md-sys-color-outline-variant: #CFD3E4;

  --md-sys-shape-extra-large: 24px;
  --md-sys-shape-large: 16px;
  --md-sys-shape-medium: 12px;
  --md-sys-shape-full: 9999px;

  /* Kurva gerak profesional: halus tanpa pantulan (no-bounce) */
  --smooth-decelerate: cubic-bezier(0.22, 1, 0.36, 1);
  --standard-easing: cubic-bezier(0.2, 0, 0, 1);

  --card-shadow: 0 1px 3px rgba(20, 24, 36, 0.04), 0 4px 12px rgba(20, 24, 36, 0.03);
  --card-shadow-hover: 0 6px 18px rgba(39, 79, 232, 0.09), 0 2px 4px rgba(20, 24, 36, 0.04);
  --menu-shadow: 0 16px 40px rgba(15, 19, 29, 0.22), 0 4px 12px rgba(15, 19, 29, 0.08);
  --sheet-shadow: 0 -10px 32px rgba(15, 19, 29, 0.26);
}

[data-theme="dark"] {
  --md-sys-color-primary: #BAC3FF;
  --md-sys-color-on-primary: #00208D;
  --md-sys-color-primary-container: #0035C5;
  --md-sys-color-on-primary-container: #DEE1FF;

  --md-sys-color-secondary: #B3C8E8;
  --md-sys-color-on-secondary: #1C314B;
  --md-sys-color-secondary-container: #2E425D;
  --md-sys-color-on-secondary-container: #D3E4FF;

  --md-sys-color-tertiary: #FFB952;
  --md-sys-color-on-tertiary: #462A00;
  --md-sys-color-tertiary-container: #643F00;
  --md-sys-color-on-tertiary-container: #FFDEA7;

  --md-sys-color-error: #FFB4AB;
  --md-sys-color-error-container: #93000A;
  --md-sys-color-on-error-container: #FFDAD6;

  --badge-sabtu-bg: #13442A;
  --badge-sabtu-fg: #98F5BE;
  --badge-ahad-bg: #3C1D70;
  --badge-ahad-fg: #E5D4FF;

  --md-sys-color-background: #0E121B;
  --md-sys-color-on-background: #E4E8F5;
  --md-sys-color-surface: #0E121B;
  --md-sys-color-surface-container-lowest: #161B27;
  --md-sys-color-surface-container-low: #1C2231;
  --md-sys-color-surface-container: #232A3C;
  --md-sys-color-surface-container-high: #2C344A;
  --md-sys-color-on-surface: #E4E8F5;
  --md-sys-color-on-surface-variant: #BFC4D6;
  --md-sys-color-outline: #8B90A3;
  --md-sys-color-outline-variant: #373D51;

  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  --card-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.38);
  --menu-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  --sheet-shadow: 0 -12px 36px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s var(--standard-easing), color 0.25s var(--standard-easing);
}

:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

svg.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

/* ==========================================================================
   APP CONTAINER & EXPRESSIVE HERO HEADER
   ========================================================================== */
.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 88px;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px 12px 84px;
  }
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #274FE8 0%, #3E48E5 52%, #1B3687 100%);
  color: #FFFFFF;
  border-radius: var(--md-sys-shape-extra-large);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(39, 79, 232, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
  .hero-card {
    padding: 16px 16px 18px;
    border-radius: 22px;
    margin-bottom: 14px;
  }
}

.hero-card::before,
.hero-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
}
.hero-card::before {
  width: 240px;
  height: 240px;
  background: #FFDEA7;
  top: -90px;
  right: -45px;
}
.hero-card::after {
  width: 160px;
  height: 160px;
  background: #98F5BE;
  bottom: -65px;
  right: 120px;
}

.hero-utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.school-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  min-width: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-tonal-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--md-sys-shape-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--smooth-decelerate), background-color 0.2s var(--standard-easing);
}
.icon-tonal-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.icon-tonal-btn:active {
  transform: scale(0.95);
}

.admin-hero-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: var(--md-sys-shape-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 19, 29, 0.28);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--smooth-decelerate), background-color 0.2s var(--standard-easing);
}
.admin-hero-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.admin-hero-btn:active {
  transform: scale(0.96);
}
.admin-hero-btn.logged-in {
  background: #FFDEA7;
  color: #2A1700;
  border-color: #FFDEA7;
}

.notif-dot-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.3;
}

.admin-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFDEA7;
  color: #2A1700;
  padding: 4px 11px;
  border-radius: var(--md-sys-shape-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.35rem, 4.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 19, 29, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 11px;
  border-radius: var(--md-sys-shape-full);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.94);
}
.stat-pill strong {
  font-weight: 700;
  color: #FFFFFF;
}

/* ==========================================================================
   BANNER INFO PENTING UNTUK ORANG TUA (PROPORTIONAL & BALANCED)
   ========================================================================== */
.parent-spotlight-banner {
  position: relative;
  background: linear-gradient(135deg, #EA580C 0%, #D97706 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(254, 240, 138, 0.45);
}

.spotlight-content {
  flex: 1;
  min-width: 0;
}

.spotlight-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.spotlight-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #FEF08A;
  color: #7C2D12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.spotlight-badge {
  display: inline-block;
  background: #FEF08A;
  color: #7C2D12;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.spotlight-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.spotlight-desc {
  font-size: 12.5px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.96);
}

.spotlight-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: var(--md-sys-shape-full);
  border: none;
  background: #FFFFFF;
  color: #9A3412;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s var(--smooth-decelerate), background-color 0.2s;
}
.spotlight-cta-btn:hover {
  background: #FFFBEB;
}
.spotlight-cta-btn:active {
  transform: scale(0.97);
}

@media (max-width: 640px) {
  .parent-spotlight-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .spotlight-cta-btn {
    width: 100%;
  }
}

/* ==========================================================================
   M3 EXPRESSIVE SEGMENTED SWITCHER
   ========================================================================== */
.nav-bar-wrapper {
  margin-bottom: 14px;
}

.m3-segmented {
  display: inline-flex;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  padding: 4px;
  border-radius: var(--md-sys-shape-full);
  gap: 4px;
}

.m3-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-full);
  cursor: pointer;
  transition: background-color 0.22s var(--smooth-decelerate), color 0.22s var(--smooth-decelerate), box-shadow 0.22s var(--smooth-decelerate);
  white-space: nowrap;
}

.m3-seg-btn:hover:not(.active) {
  background: rgba(39, 79, 232, 0.06);
  color: var(--md-sys-color-on-surface);
}

.m3-seg-btn.active {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 3px 10px rgba(39, 79, 232, 0.24);
}

.seg-badge {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}
.m3-seg-btn.active .seg-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .m3-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 16px;
    padding: 4px;
    gap: 4px;
  }
  .m3-seg-btn {
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   M3 SEARCH BAR & FILTER CHIPS
   ========================================================================== */
.search-container {
  margin-bottom: 10px;
}

.m3-search-bar {
  display: flex;
  align-items: center;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1.5px solid var(--md-sys-color-primary);
  border-radius: var(--md-sys-shape-full);
  height: 50px;
  padding: 0 14px;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(39, 79, 232, 0.08);
  transition: border-color 0.2s, box-shadow 0.25s var(--smooth-decelerate);
}

.m3-search-bar:focus-within {
  border-width: 2px;
  box-shadow: 0 0 0 4px var(--md-sys-color-primary-container);
}

.m3-search-bar.pulse-focus {
  box-shadow: 0 0 0 5px #FDE047;
}

.m3-search-bar .search-icon {
  color: var(--md-sys-color-primary);
}

.m3-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}

.m3-search-input::placeholder {
  color: var(--md-sys-color-outline);
  font-weight: 400;
}

.m3-search-input::-webkit-search-decoration,
.m3-search-input::-webkit-search-cancel-button,
.m3-search-input::-webkit-search-results-button,
.m3-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.clear-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--md-sys-shape-full);
  border: none;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
}
.clear-btn:hover {
  background: var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface);
}
.clear-btn.visible {
  display: inline-flex;
}

.chips-scroll {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar {
  display: none;
}

.chip-divider {
  width: 1px;
  height: 20px;
  background: var(--md-sys-color-outline-variant);
  flex-shrink: 0;
  margin: 0 2px;
}

.m3-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 35px;
  padding: 0 13px;
  border-radius: var(--md-sys-shape-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface-variant);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--standard-easing), color 0.2s var(--standard-easing), border-color 0.2s;
}

.m3-chip:hover {
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
}

.m3-chip.selected {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-color: transparent;
  padding-left: 10px;
}

.m3-chip .check-ico {
  display: none;
  width: 15px;
  height: 15px;
}
.m3-chip.selected .check-ico {
  display: inline-block;
}

/* ==========================================================================
   QUICK JUMP SESI BAR (PINNED / STICKY)
   ========================================================================== */
.session-jump-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 4px;
  margin: 0 -4px 10px;
  background-color: var(--md-sys-color-background);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  scrollbar-width: none;
}
.session-jump-bar::-webkit-scrollbar {
  display: none;
}
.session-jump-bar:empty {
  display: none;
}

.jump-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  margin-right: 4px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  border: 1.5px solid var(--md-sys-color-outline-variant);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--standard-easing), color 0.2s var(--standard-easing), border-color 0.2s, box-shadow 0.2s;
}
.jump-pill:hover:not(.active) {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-color: var(--md-sys-color-primary);
}
.jump-pill.active {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2.5px var(--md-sys-color-primary-container), 0 4px 12px rgba(39, 79, 232, 0.28);
  font-weight: 800;
}
.jump-pill.active .jump-dot {
  background: #FDE047;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .jump-pill.active .jump-dot {
  background: #00208D;
  box-shadow: 0 0 0 2px rgba(0, 32, 141, 0.25);
}

.jump-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.jump-dot.sabtu { background: #16A34A; }
.jump-dot.ahad { background: #7C3AED; }

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 2px 12px;
  font-size: 12.5px;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 600;
}

.toggle-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--md-sys-shape-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.toggle-all-btn:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-color: transparent;
}

/* ==========================================================================
   EXACT MATCH SPOTLIGHT (SOROTAN KECOCOKAN PERSIS NAMA TUNGGAL)
   ========================================================================== */
.exact-match-spotlight {
  background: var(--md-sys-color-primary-container);
  border: 1.5px solid var(--md-sys-color-primary);
  border-radius: var(--md-sys-shape-large);
  padding: 13px 14px 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(39, 79, 232, 0.12);
  animation: spotlightReveal 0.22s var(--smooth-decelerate) both;
}

@keyframes spotlightReveal {
  from {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.exact-spotlight-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.exact-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-full);
}

.exact-spotlight-caption {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--md-sys-color-on-primary-container);
}

.compact-card.is-exact-match {
  border: 1.5px solid var(--md-sys-color-primary);
  box-shadow: 0 4px 14px rgba(39, 79, 232, 0.12);
}

.mini-chip.exact-chip {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  font-weight: 700;
}

/* ==========================================================================
   SESSION GROUPING & HIDE/UNHIDE ACCORDION (DEFAULT HIDE)
   ========================================================================== */
.sessions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-section {
  scroll-margin-top: 64px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-large);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s var(--standard-easing), box-shadow 0.2s var(--standard-easing);
}

.session-section.is-open {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 6px 18px rgba(39, 79, 232, 0.08);
}

.session-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--md-sys-color-surface-container-lowest);
  border: none;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s var(--standard-easing);
}

.session-header:hover {
  background: var(--md-sys-color-surface-container-low);
}

.session-section.is-open .session-header {
  background: var(--md-sys-color-surface-container-low);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.session-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.day-pill {
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.day-pill.sabtu {
  background: var(--badge-sabtu-bg);
  color: var(--badge-sabtu-fg);
}
.day-pill.ahad {
  background: var(--badge-ahad-bg);
  color: var(--badge-ahad-fg);
}

.session-time-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--md-sys-color-on-surface);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.session-badges-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.session-stat-tag {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 9px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
}

.session-stat-tag.empty-tag {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.accordion-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-size: 11px;
  font-weight: 700;
}

.accordion-chevron {
  transition: transform 0.25s var(--smooth-decelerate);
}
.session-section.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.session-body {
  display: none;
  padding: 12px 14px 14px;
  background: var(--md-sys-color-surface);
}
.session-section.is-open .session-body {
  display: block;
}

/* Grid Kartu Ramping */
.compact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 10px;
}

.compact-card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-large);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s var(--smooth-decelerate), border-color 0.2s var(--standard-easing), box-shadow 0.2s var(--standard-easing);
}

.compact-card:hover {
  transform: translateY(-2px);
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--card-shadow-hover);
}

.compact-card.is-empty {
  background: var(--md-sys-color-surface-container-low);
  border-style: dashed;
  border-color: var(--md-sys-color-outline);
}

.card-left-group {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.pc-pill-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.compact-card.is-empty .pc-pill-box {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
}
.pc-pill-box .pc-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}
.pc-pill-box .pc-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin-top: 1px;
}

.card-info {
  min-width: 0;
  flex: 1;
}

.student-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--md-sys-color-on-surface);
  line-height: 1.32;
  margin-bottom: 5px;
  word-break: break-word;
}

.empty-slot-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 5px;
}

mark.match-highlight {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
}

.card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  border: none;
}

.mini-chip.kamar-btn {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  cursor: pointer;
  transition: filter 0.18s var(--standard-easing);
}
.mini-chip.kamar-btn:hover {
  filter: brightness(0.95);
}

.mini-chip.status-kosong {
  background: var(--badge-sabtu-bg);
  color: var(--badge-sabtu-fg);
}

.card-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.compact-meet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  text-decoration: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s var(--standard-easing), transform 0.18s var(--smooth-decelerate);
}
.compact-meet-btn:hover {
  filter: brightness(1.08);
}
.compact-meet-btn:active {
  transform: scale(0.96);
}

.compact-request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  border: 1px solid var(--md-sys-color-tertiary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s var(--standard-easing), transform 0.18s var(--smooth-decelerate);
}
.compact-request-btn:hover {
  filter: brightness(0.97);
}
.compact-request-btn:active {
  transform: scale(0.96);
}

.compact-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--md-sys-shape-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.compact-copy-btn:hover {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-color: transparent;
}

/* ==========================================================================
   GOOGLE FORM STYLE DROPDOWN & SMOOTH NO-BOUNCE BOTTOM SHEET
   ========================================================================== */
.gf-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.gf-field-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 6px;
  padding-left: 2px;
}

.gf-trigger {
  width: 100%;
  min-height: 48px;
  padding: 9px 14px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1.5px solid var(--md-sys-color-outline-variant);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--md-sys-color-on-surface);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.gf-trigger:hover {
  background: var(--md-sys-color-surface-container-low);
  border-color: var(--md-sys-color-outline);
}

.gf-trigger.open {
  border-color: var(--md-sys-color-primary);
  border-width: 2px;
  box-shadow: 0 0 0 3px var(--md-sys-color-primary-container);
}

.gf-trigger.has-schedule-pill {
  background: var(--md-sys-color-primary-container);
  border-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary-container);
}

.gf-trigger.no-schedule-pill {
  background: var(--md-sys-color-surface-container-low);
  border-style: dashed;
}

.gf-trigger-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.gf-trigger-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-trigger-text.placeholder {
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}

.gf-arrow {
  color: var(--md-sys-color-on-surface-variant);
  transition: transform 0.25s var(--smooth-decelerate);
  flex-shrink: 0;
}
.gf-trigger.open .gf-arrow {
  transform: rotate(180deg);
  color: var(--md-sys-color-primary);
}

.gf-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, 0.56);
  backdrop-filter: blur(2px);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--smooth-decelerate);
}
.gf-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.gf-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 290px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 16px;
  box-shadow: var(--menu-shadow);
  z-index: 300;
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 360px;
  animation: menuPop 0.22s var(--smooth-decelerate) both;
}
.gf-menu.align-right {
  left: auto;
  right: 0;
  min-width: 340px;
}
.gf-menu.open {
  display: flex;
}

@keyframes menuPop {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.gf-menu-header {
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-low);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}

.gf-sheet-handle {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--md-sys-color-outline-variant);
  margin: 2px auto 0;
}

.gf-sheet-title {
  display: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--md-sys-color-on-surface);
  padding: 0 2px;
  letter-spacing: -0.01em;
}

.gf-menu-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-full);
  padding: 0 13px;
  height: 42px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gf-menu-search:focus-within {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px var(--md-sys-color-primary-container);
}
.gf-menu-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  min-width: 0;
}
.gf-menu-search input::placeholder {
  color: var(--md-sys-color-outline);
}

.gf-options-list {
  overflow-y: auto;
  padding: 4px 0 calc(8px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.gf-option {
  width: 100%;
  min-height: 52px;
  padding: 11px 16px;
  border: none;
  border-bottom: 1px solid rgba(128, 134, 155, 0.1);
  background: transparent;
  color: var(--md-sys-color-on-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.15s var(--standard-easing);
}
.gf-option:last-child {
  border-bottom: none;
}

.gf-option:hover {
  background: var(--md-sys-color-surface-container-low);
}

.gf-option.selected {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-weight: 700;
}

.gf-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.gf-option-main {
  min-width: 0;
  flex: 1;
}

.gf-option-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--md-sys-color-on-surface);
}
.gf-option.selected .gf-option-title {
  color: var(--md-sys-color-on-primary-container);
}

.gf-option-sub {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 2px;
  line-height: 1.35;
}
.gf-option.selected .gf-option-sub {
  color: var(--md-sys-color-on-primary-container);
  opacity: 0.88;
}

/* Hanya tampil saat item terpilih agar perataan kiri daftar tetap lurus rapi */
.gf-option-check-slot {
  display: none;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}
.gf-option.selected .gf-option-check-slot {
  display: inline-flex;
}

.gf-option-badge {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
  flex-shrink: 0;
  white-space: nowrap;
}
.gf-option-badge.available {
  background: var(--badge-sabtu-bg);
  color: var(--badge-sabtu-fg);
}
.gf-option.selected .gf-option-badge {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.gf-divider {
  height: 1px;
  background: var(--md-sys-color-outline-variant);
  margin: 4px 0;
}

/* Mobile Bottom Sheet: Slide dari bawah ke atas yang smooth TANPA memantul */
@media (max-width: 640px) {
  .gf-menu,
  .gf-menu.align-right {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 100%;
    max-height: 82vh;
    border-radius: 24px 24px 0 0;
    border: none;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--sheet-shadow);
    will-change: transform;
    animation: sheetSlideUp 0.32s var(--smooth-decelerate) both;
  }
  .gf-sheet-handle,
  .gf-sheet-title {
    display: block;
  }
  .gf-option {
    min-height: 56px;
    padding: 12px 16px;
  }
  .gf-option-badge {
    font-size: 10.5px;
    padding: 4px 9px;
  }
}

@keyframes sheetSlideUp {
  from {
    transform: translate3d(0, 100%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================================
   KAMAR DIRECTORY & SELECTED BANNER
   ========================================================================== */
.kamar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.kamar-card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-large);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s var(--smooth-decelerate), border-color 0.2s, background-color 0.2s, color 0.2s;
}
.kamar-card:hover {
  transform: translateY(-2px);
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.kamar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.kamar-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kamar-count-pill {
  padding: 3px 9px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kamar-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.kamar-card-sub {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
}

.selected-kamar-banner {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: var(--md-sys-shape-large);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.back-kamar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--md-sys-shape-full);
  border: none;
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: background-color 0.18s;
}
.back-kamar-btn:hover {
  background: var(--md-sys-color-surface-container-low);
}

/* ==========================================================================
   ADMIN DASHBOARD: REQUESTS, FULL SYNC & DAFTAR SELURUH SANTRI
   ========================================================================== */
.admin-section-block {
  margin-bottom: 24px;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-section-heading h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.01em;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sync-sheet-m3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: var(--md-sys-shape-full);
  border: 1px solid var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s var(--standard-easing), transform 0.18s var(--smooth-decelerate);
}
.btn-sync-sheet-m3:hover:not(:disabled) {
  filter: brightness(0.96);
}
.btn-sync-sheet-m3:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-sync-sheet-m3:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn-sync-sheet-m3.is-syncing .sync-ico {
  animation: syncBtnSpin 0.9s linear infinite;
}

@keyframes syncBtnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.admin-filter-toolbar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 720px) {
  .admin-filter-toolbar {
    grid-template-columns: 1fr;
  }
}

.admin-student-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.admin-student-row {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-large);
  padding: 12px 15px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.2s;
}
.admin-student-row:hover {
  border-color: var(--md-sys-color-primary);
}

.admin-student-info {
  flex: 1;
  min-width: 0;
}

.admin-student-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 5px;
  line-height: 1.32;
}

.admin-student-schedule-box {
  width: 330px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .admin-student-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-student-schedule-box {
    width: 100%;
  }
}

/* Log & Request Cards */
.log-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-large);
  padding: 15px 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.log-route-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.route-pill-old {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
}

.route-pill-new {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--badge-sabtu-bg);
  color: var(--badge-sabtu-fg);
}

.log-reason-box {
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--md-sys-color-surface-container-low);
  border-left: 3px solid var(--md-sys-color-primary);
  font-size: 12.5px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.4;
}

.admin-action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-approve {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-full);
  border: none;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s;
}
.btn-approve:hover {
  filter: brightness(1.08);
}

.btn-reject {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-full);
  border: none;
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s;
}
.btn-reject:hover {
  filter: brightness(0.95);
}

/* ==========================================================================
   M3 EXPRESSIVE MODALS & INLINE PIN ERROR SHAKE
   ========================================================================== */
.m3-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 26, 0.62);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.m3-modal-backdrop.open {
  display: flex;
}

.m3-modal-box {
  width: 100%;
  max-width: 460px;
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 24px;
  overflow: visible;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  animation: modalFadeSlide 0.26s var(--smooth-decelerate) both;
}

@keyframes modalFadeSlide {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.m3-modal-header {
  padding: 16px 18px;
  background: var(--md-sys-color-surface-container-low);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 24px 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.m3-modal-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.form-input:focus {
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-surface-container-lowest);
}

.form-input.is-error {
  border-color: var(--md-sys-color-error);
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

.pin-error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--md-sys-color-error);
}

.pin-error-msg.shake-anim {
  animation: pinShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.target-slot-box {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.modal-footer-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-outlined-m3 {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: var(--md-sys-shape-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s;
}
.btn-outlined-m3:hover {
  background: var(--md-sys-color-surface-container-low);
}

.btn-filled-m3 {
  min-height: 40px;
  padding: 9px 18px;
  border-radius: var(--md-sys-shape-full);
  border: none;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s;
}
.btn-filled-m3:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn-filled-m3:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   LOADING, EMPTY STATE & ANIMATED SNACKBAR NOTIFICATION
   ========================================================================== */
.hidden {
  display: none !important;
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  background: var(--md-sys-color-surface-container-lowest);
  border-radius: var(--md-sys-shape-large);
  border: 1px dashed var(--md-sys-color-outline-variant);
}
.empty-state h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin: 10px 0 4px;
}
.empty-state p {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 10px;
}
.skeleton-card {
  height: 76px;
  border-radius: var(--md-sys-shape-large);
  background: linear-gradient(90deg, var(--md-sys-color-surface-container-low) 25%, var(--md-sys-color-surface-container) 50%, var(--md-sys-color-surface-container-low) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.m3-snackbar {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate3d(-50%, 90px, 0);
  background: var(--md-sys-color-on-surface);
  color: var(--md-sys-color-surface);
  padding: 11px 18px;
  border-radius: var(--md-sys-shape-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--smooth-decelerate), opacity 0.25s var(--smooth-decelerate);
  z-index: 999;
  max-width: 92vw;
}
.m3-snackbar.show {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

.m3-snackbar.is-rich {
  border-radius: 18px;
  padding: 13px 16px 15px;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.m3-snackbar.is-rich.type-send {
  background: #1B3687;
  color: #FFFFFF;
}

.m3-snackbar.is-rich.type-approve {
  background: #0B532C;
  color: #FFFFFF;
}

.m3-snackbar.is-rich.type-schedule {
  background: #1E3A5F;
  color: #FFFFFF;
}

.sb-icon-wrap {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.m3-snackbar.is-rich .sb-icon-wrap {
  display: flex;
}

.sb-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sb-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.m3-snackbar.is-rich .sb-text {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.38;
}

.sb-progress {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left center;
}

.m3-snackbar.is-rich.show .sb-progress {
  display: block;
  animation: sbProgressBar 4.2s linear forwards;
}

@keyframes sbProgressBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Animasi Ikon 1: Kirim Pengajuan (Pesawat Kertas Meluncur) */
.anim-send-plane {
  animation: sendPlaneFly 0.55s var(--smooth-decelerate) both;
}

@keyframes sendPlaneFly {
  0% { opacity: 0; transform: translate(-10px, 10px) scale(0.7); }
  65% { opacity: 1; transform: translate(2px, -2px) scale(1.06); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* Animasi Ikon 2: Setujui Pengajuan (Centang Terlukis + Denyut Cincin) */
.type-approve .sb-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid #98F5BE;
  animation: approvePulseRing 0.75s var(--smooth-decelerate) both;
}

.anim-check-path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: drawCheckStroke 0.45s 0.12s var(--smooth-decelerate) forwards;
}

@keyframes drawCheckStroke {
  to { stroke-dashoffset: 0; }
}

@keyframes approvePulseRing {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.32); opacity: 0; }
}

/* Animasi Ikon 3: Perubahan Jadwal (Sinkronisasi Berputar Halus) */
.anim-schedule-sync {
  animation: scheduleSpinPop 0.55s var(--smooth-decelerate) both;
}

@keyframes scheduleSpinPop {
  0% { opacity: 0; transform: rotate(-90deg) scale(0.75); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}