/* ============================================================
   SISTEM SEMINAR FAPET UNIPA — COMFORT LAYER
   Perbaikan kenyamanan lintas peran tanpa mengubah business logic.
   ============================================================ */

:root {
  --comfort-surface: #ffffff;
  --comfort-soft: #fbf7f8;
  --comfort-border: #eadfe3;
  --comfort-shadow: 0 12px 32px rgba(61, 11, 25, .07);
  --comfort-bottom-nav-height: 68px;
}

/* Konten lebih mudah dipindai pada layar lebar maupun kecil. */
.seminar-main > .container,
.seminar-main > .container-fluid {
  min-width: 0;
}

.seminar-main .card,
.seminar-main .seminar-card {
  scroll-margin-top: 92px;
}

/* Tombol aksi penting tidak terlalu kecil pada perangkat sentuh. */
.seminar-main .btn:not(.btn-sm),
.seminar-main button:not(.btn-sm) {
  min-height: 42px;
}

.seminar-main .btn-sm {
  min-height: 34px;
}

/* Breadcrumb tetap ringan, namun target klik cukup besar. */
.seminar-main .breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

/* Tabel: mudah dibaca dan tetap bisa digeser pada mobile. */
.seminar-scroll-region {
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.seminar-scroll-region.is-scrollable::after {
  content: "Geser tabel →";
  position: sticky;
  right: .5rem;
  bottom: .4rem;
  float: right;
  margin-top: .35rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(82, 16, 36, .9);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(61, 11, 25, .16);
}

.seminar-scroll-region.is-scrollable.is-at-end::after {
  display: none;
}

/* ============================================================
   NAVBAR / MOBILE NAVIGATION
   ============================================================ */

.seminar-home-button {
  min-height: 2.25rem;
  border-radius: 999px !important;
  padding-inline: .78rem !important;
  font-size: .72rem;
  font-weight: 800;
  color: #fff !important;
  border-color: rgba(255,255,255,.35) !important;
  background: rgba(255,255,255,.07) !important;
}

.seminar-home-button:hover,
.seminar-home-button:focus {
  color: var(--fp-maroon-900) !important;
  background: #fff !important;
  border-color: #fff !important;
}

.seminar-mobile-nav {
  display: none;
}

@media (max-width: 767.98px) {
  body.seminar-body.has-mobile-nav {
    padding-bottom: calc(var(--comfort-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .seminar-nav .seminar-header-menu-button,
  .seminar-nav .seminar-header-notification-button,
  .seminar-nav .seminar-home-button {
    display: none !important;
  }

  .seminar-nav-actions {
    width: auto !important;
    margin-left: auto;
  }

  .seminar-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: var(--comfort-bottom-nav-height);
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(82,16,36,.14);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -10px 30px rgba(61,11,25,.10);
    backdrop-filter: blur(14px) saturate(150%);
  }

  .seminar-mobile-nav a {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 4px;
    border-radius: 12px;
    color: #78686e;
    text-decoration: none;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.15;
  }

  .seminar-mobile-nav a i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .seminar-mobile-nav a.is-active,
  .seminar-mobile-nav a:hover,
  .seminar-mobile-nav a:focus {
    background: var(--fp-maroon-50);
    color: var(--fp-maroon-800);
  }

  .seminar-mobile-nav .mobile-nav-badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 7px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--fp-gold-400);
    color: #3d2b08;
    font-size: .58rem;
    font-weight: 800;
    box-shadow: 0 0 0 2px #fff;
  }

  .seminar-mobile-nav .mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .seminar-footer {
    margin-bottom: 0;
  }
}

/* ============================================================
   MENU HUB
   ============================================================ */

.comfort-hub {
  max-width: 1220px;
  margin: 0 auto;
  padding: 22px 16px 72px;
}

.comfort-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(240,207,115,.18), transparent 28%),
    linear-gradient(125deg, var(--fp-maroon-700), var(--fp-maroon-950));
  color: #fff;
  box-shadow: 0 18px 44px rgba(61,11,25,.13);
}

.comfort-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -120px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.05);
  pointer-events: none;
}

.comfort-kicker {
  margin-bottom: .4rem;
  color: var(--fp-gold-300);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comfort-hero h1 {
  margin-bottom: .55rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
}

.comfort-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  line-height: 1.65;
}

.comfort-task-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
}

.comfort-search-wrap {
  position: relative;
  max-width: 720px;
  margin: -20px auto 26px;
  z-index: 2;
}

.comfort-search {
  min-height: 54px;
  padding: 0 50px 0 46px;
  border: 1px solid var(--comfort-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--comfort-shadow);
  font-size: .9rem;
}

.comfort-search:focus {
  border-color: var(--fp-maroon-500);
  box-shadow: 0 0 0 .2rem rgba(123,31,53,.10), var(--comfort-shadow);
}

.comfort-search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fp-maroon-700);
  pointer-events: none;
}

.comfort-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f6eef1;
  color: var(--fp-maroon-800);
}

.comfort-search-clear.is-visible {
  display: inline-flex;
}

.comfort-section {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--comfort-border);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 9px 26px rgba(61,11,25,.045);
}

.comfort-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.comfort-section-head h2 {
  margin: 0;
  color: var(--fp-maroon-950);
  font-size: 1rem;
  font-weight: 800;
}

.comfort-section-head p {
  margin: 3px 0 0;
  color: var(--fp-muted);
  font-size: .76rem;
  line-height: 1.5;
}

.comfort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.comfort-card {
  position: relative;
  min-width: 0;
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--comfort-border);
  border-radius: 15px;
  background: #fff;
  color: var(--fp-ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.comfort-card:hover,
.comfort-card:focus-visible {
  transform: translateY(-2px);
  border-color: #d9bac4;
  color: var(--fp-maroon-900);
  box-shadow: 0 12px 26px rgba(61,11,25,.08);
}

.comfort-card-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--fp-maroon-50);
  color: var(--fp-maroon-700);
  font-size: 1.1rem;
}

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

.comfort-card-title {
  display: block;
  padding-right: 32px;
  color: var(--fp-maroon-950);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

.comfort-card-desc {
  display: block;
  margin-top: 5px;
  color: #76666b;
  font-size: .73rem;
  line-height: 1.5;
}

.comfort-card-go {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: var(--fp-muted);
  font-size: .75rem;
}

.comfort-badge {
  position: absolute;
  right: 11px;
  top: 11px;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--fp-gold-400);
  color: #402b00;
  font-size: .68rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px #fff;
}

.comfort-card.is-priority {
  border-color: #e7d39b;
  background: linear-gradient(135deg, #fff, var(--fp-gold-50));
}

.comfort-group-details > summary {
  cursor: pointer;
  list-style: none;
}

.comfort-group-details > summary::-webkit-details-marker {
  display: none;
}

.comfort-group-details > summary .comfort-chevron {
  transition: transform .16s ease;
}

.comfort-group-details[open] > summary .comfort-chevron {
  transform: rotate(180deg);
}

.comfort-empty-search {
  display: none;
  padding: 30px 18px;
  border: 1px dashed #d9cbd0;
  border-radius: 15px;
  color: var(--fp-muted);
  text-align: center;
  background: #fff;
}

.comfort-empty-search.is-visible {
  display: block;
}

.comfort-help-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid #e7dfea;
  border-radius: 14px;
  background: #faf7f8;
  color: #68585e;
  font-size: .76rem;
  line-height: 1.55;
}

.comfort-help-note i {
  margin-top: 1px;
  color: var(--fp-maroon-700);
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .comfort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .comfort-hub {
    padding: 14px 12px 34px;
  }

  .comfort-hero {
    border-radius: 17px;
    padding: 20px 18px 30px;
  }

  .comfort-search-wrap {
    margin: -18px 8px 20px;
  }

  .comfort-search {
    min-height: 50px;
    border-radius: 14px;
    font-size: 16px;
  }

  .comfort-section {
    padding: 15px;
    border-radius: 15px;
  }

  .comfort-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .comfort-card {
    min-height: 104px;
    padding: 13px;
  }

  .comfort-card-title {
    font-size: .82rem;
  }

  .comfort-card-desc {
    font-size: .72rem;
  }
}

/* Kurangi animasi bila pengguna meminta reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
