/* =========================================================
   Sistem Informasi Masjid Al-Madaniah UBB — Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --teal-deep: #0F4C3A;
  --teal-ink: #0A3527;
  --teal-soft: #E4EAE1;
  --brass: #B8863B;
  --brass-light: #D8B876;
  --cream: #FAF6EC;
  --ink: #20241F;
  --ink-soft: #565B52;
  --white: #FFFFFF;
  --border: #DCD3BE;

  --font-display: 'Amiri', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Geometric pattern texture ---------- */
.pattern-band {
  background-color: var(--teal-deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(216,184,118,0.10) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(216,184,118,0.10) 0 2px, transparent 2px 26px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--teal-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--brass);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--brass-light);
  font-weight: 500;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: flex;
  align-items: center;
  margin: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--brass-light);
  border-bottom-color: var(--brass);
  text-decoration: none;
}

.main-nav a.nav-btn-login {
  padding: 0.36rem 0.85rem;
  border: 1px solid rgba(216, 184, 118, 0.55);
  border-radius: 4px;
  color: var(--brass-light);
  font-weight: 600;
}
.main-nav a.nav-btn-login:hover,
.main-nav a.nav-btn-login.active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--teal-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass-light);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-login {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: 1.4rem;
}

@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  .nav-login { margin-left: 0.7rem; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
  }
  .main-nav li {
    display: block;
  }
  .main-nav a {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .main-nav a.nav-btn-login {
    margin-top: 0.55rem;
    justify-content: center;
    padding: 0.55rem 0.85rem;
  }
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--teal-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 3.4rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-eyebrow {
  color: var(--brass-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.hero p.lead {
  color: #DCE6DE;
  font-size: 1.05rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.4rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brass);
  color: var(--teal-ink);
}
.btn-primary:hover { background: var(--brass-light); text-decoration: none; }
.btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); text-decoration: none; }
.btn-solid {
  background: var(--teal-deep);
  color: var(--white);
}
.btn-solid:hover { background: var(--teal-ink); text-decoration: none; }

/* ---------- Prayer time widget ---------- */
.prayer-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: 1.4rem 1.5rem 1.6rem;
  border-top: 5px solid var(--brass);
  box-shadow: 0 18px 40px rgba(10,53,39,0.28);
}
.prayer-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.prayer-item {
  text-align: center;
  padding: 0.5rem 0.2rem;
  border-right: 1px solid var(--border);
}
.prayer-item:last-child { border-right: none; }
.prayer-item .name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--teal-deep);
}
.prayer-item .time {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
.prayer-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .prayer-item:nth-child(3) { border-right: none; }
}

/* ---------- Section ---------- */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--teal-soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head .kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  display: block;
  margin-bottom: 0.2rem;
}
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; white-space: nowrap; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal-deep);
  padding: 1.4rem;
}
.card .date-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.card .meta { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
caption { caption-side: top; text-align: left; font-weight: 600; margin-bottom: 0.6rem; }
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
th {
  background: var(--teal-deep);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}
tr:nth-child(even) td { background: #F4F0E4; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  background-size: cover;
}
.gallery-item span {
  background: rgba(10,53,39,0.72);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
}

/* ---------- Profile / structure ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}
.people-card { text-align: center; }
.people-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 2px solid var(--brass);
  margin: 0 auto 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-deep);
}
.people-card .role { font-size: 0.82rem; color: var(--brass); font-weight: 600; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.form-field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.3rem; }
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="email"],
textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal-deep); }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.3rem;
  font-size: 0.92rem;
}
.alert-error { background: #FBEAE7; border: 1px solid #D9836F; color: #7A2E1F; }
.alert-success { background: #E7F0E3; border: 1px solid #6FA45A; color: #2C4A20; }
.alert ul { margin: 0.4rem 0 0 1.1rem; padding: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-ink);
  color: #C9D6CC;
  padding: 3rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-grid p, .footer-grid a { color: #B7C6BA; font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--brass-light); }

@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--teal-deep);
  color: var(--white);
  padding: 2.6rem 0;
  border-bottom: 3px solid var(--brass);
}
.page-header .kicker {
  color: var(--brass-light);
  font-family: var(--font-display);
  font-style: italic;
}
.page-header h1 { color: var(--white); margin: 0; }
.breadcrumb { font-size: 0.85rem; color: #C9D6CC; margin-top: 0.5rem; }
.breadcrumb a { color: var(--brass-light); }

/* ---------- Admin layout ---------- */
.admin-body { background: #F1EFE7; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  background: var(--teal-ink);
  color: var(--white);
  padding: 1.6rem 1.2rem;
  flex-shrink: 0;
}
.admin-sidebar .brand-text { font-size: 1rem; }
.admin-nav { margin-top: 2rem; }
.admin-nav a {
  display: block;
  color: #C9D6CC;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-decoration: none;
}
.admin-main { flex: 1; padding: 2rem 2.4rem; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.8rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  padding: 1.1rem 1.3rem;
}
.stat-card .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--teal-deep); }
.stat-card .label { font-size: 0.82rem; color: var(--ink-soft); }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-deep);
  background-image: repeating-linear-gradient(45deg, rgba(216,184,118,0.08) 0 2px, transparent 2px 26px);
  padding: 2rem 1rem;
}
.login-card {
  background: var(--white);
  max-width: 400px;
  width: 100%;
  padding: 2.2rem 2rem;
  border-top: 5px solid var(--brass);
}
.login-card .brand { color: var(--teal-deep); justify-content: center; margin-bottom: 1.6rem; }
.login-card .brand-text small { color: var(--brass); }


/* ---------- Profil: foto & dropdown visi-misi ---------- */
.profil-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.2rem;
  align-items: start;
}
.profil-foto { margin: 0; }
.profil-foto img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--teal-soft);
}
.profil-foto figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 760px) {
  .profil-intro { grid-template-columns: 1fr; }
}

.accordion { max-width: 820px; margin: 0 auto; display: grid; gap: 0.8rem; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal-deep);
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "";
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 1rem;
}
.accordion-item[open] summary::after { transform: rotate(-135deg); }
.accordion-item summary:hover { background: var(--cream); }
.accordion-body { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }
.accordion-body p { margin-bottom: 0; }
.accordion-body ol { margin: 0; padding-left: 1.2rem; }
.accordion-body li { margin-bottom: 0.4rem; }

.people-foto { display: block; object-fit: cover; }

/* ---------- Admin: tombol hapus, pratinjau foto ---------- */
.btn-hapus {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #9B3A27;
  cursor: pointer;
  text-decoration: underline;
}
.thumb {
  display: block;
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
}
.foto-preview {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 4px;
  margin-bottom: 1rem;
}


/* =========================================================
   TEMA & ANIMASI
   ========================================================= */

:root {
  /* Pola bintang segi-8 (motif ornamen Islami), dipakai sebagai tekstur halus */
  --pola-bintang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M20 20H60V60H20Z M40 11.7L68.3 40L40 68.3L11.7 40Z' fill='none' stroke='%23D8B876' stroke-opacity='0.18' stroke-width='1.2'/%3E%3C/svg%3E");
  --pola-bintang-gelap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M20 20H60V60H20Z M40 11.7L68.3 40L40 68.3L11.7 40Z' fill='none' stroke='%230F4C3A' stroke-opacity='0.07' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* ----- Keyframes ----- */
@keyframes muncul      { from { opacity: 0; } to { opacity: 1; } }
@keyframes naik        { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes dari-kanan  { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes geser-pola-2 { to { background-position: 80px 80px, 0 0; } }
@keyframes geser-pola-3 { to { background-position: 80px 80px, 0 0, 0 0; } }
@keyframes zoom-pelan  { from { transform: scale(1); } to { transform: scale(1.13); } }
@keyframes melayang    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes denyut      { 0% { box-shadow: 0 0 0 0 rgba(184,134,59,0.55); } 70% { box-shadow: 0 0 0 12px rgba(184,134,59,0); } 100% { box-shadow: 0 0 0 0 rgba(184,134,59,0); } }
@keyframes kilau       { from { left: -60%; } to { left: 130%; } }
@keyframes notif-masuk { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes notif-keluar { to { opacity: 0; transform: translateX(60px); visibility: hidden; } }
@keyframes notif-waktu { to { transform: scaleX(0); } }

body { animation: muncul 0.6s ease both; }

/* ----- Header ----- */
.site-header { transition: box-shadow 0.3s ease; }
.site-header.menggulir { box-shadow: 0 8px 22px rgba(10,53,39,0.4); }
.brand-mark { transition: transform 0.5s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.1); }
.main-nav a { transition: border-color 0.25s ease, color 0.25s ease; }
.main-nav a:hover { color: var(--brass-light); }

/* ----- Hero ----- */
.hero {
  background-color: var(--teal-ink);
  background-image:
    var(--pola-bintang),
    radial-gradient(circle at 85% 15%, rgba(216,184,118,0.26), transparent 42%),
    linear-gradient(135deg, #0F4C3A 0%, #0A3527 100%);
  background-size: 80px 80px, auto, auto;
  background-position: 0 0, 0 0, 0 0;
  animation: geser-pola-3 70s linear infinite;
}
/* cahaya emas yang melayang pelan */
.hero::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  right: -130px; bottom: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,184,118,0.3), transparent 68%);
  animation: melayang 9s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
/* Beranda dengan foto latar (diatur dari admin: Kelola Beranda) */
.hero-foto { background-image: none; animation: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: zoom-pelan 26s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    var(--pola-bintang),
    linear-gradient(100deg, rgba(10,53,39,0.94) 0%, rgba(10,53,39,0.78) 48%, rgba(10,53,39,0.46) 100%);
  background-size: 80px 80px, auto;
}
.hero .container { position: relative; z-index: 3; }

.hero-eyebrow, .hero h1, .hero p.lead, .hero-actions {
  animation: naik 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.25s; }
.hero p.lead { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.55s; }
.hero .prayer-card {
  animation: dari-kanan 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s backwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero .prayer-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(10,53,39,0.38); }

@media (max-width: 760px) {
  .hero-overlay { background-image: var(--pola-bintang), linear-gradient(180deg, rgba(10,53,39,0.88), rgba(10,53,39,0.8)); }
}

/* ----- Tombol ----- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(10,53,39,0.28); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: kilau 0.8s ease; }

/* ----- Waktu salat ----- */
.prayer-item { transition: background-color 0.25s ease; border-radius: 6px; }
.prayer-item:hover { background: var(--cream); }
.prayer-item.berikutnya { background: rgba(184,134,59,0.14); animation: denyut 2.4s ease-out infinite; }
.prayer-item.berikutnya .time { color: var(--brass); }

/* ----- Judul halaman dalam ----- */
.page-header {
  position: relative;
  overflow: hidden;
  background-color: var(--teal-ink);
  background-image: var(--pola-bintang), linear-gradient(135deg, #0F4C3A 0%, #0A3527 100%);
  background-size: 80px 80px, auto;
  background-position: 0 0, 0 0;
  animation: geser-pola-2 80s linear infinite;
}
.page-header .container > * { animation: naik 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.page-header .container > *:nth-child(2) { animation-delay: 0.12s; }
.page-header .container > *:nth-child(3) { animation-delay: 0.24s; }

/* ----- Bagian dan judul ----- */
.section-alt {
  background-color: var(--teal-soft);
  background-image: var(--pola-bintang-gelap);
  background-size: 80px 80px;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 30px; height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--brass);
  transition: width 0.7s ease 0.2s;
}
.section-head.terlihat h2::after { width: 90px; }

/* ----- Kartu ----- */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 34px rgba(10,53,39,0.16);
  border-top-color: var(--brass);
}

/* ----- Pengurus ----- */
.people-avatar { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.people-card:hover .people-avatar {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 0 0 6px rgba(184,134,59,0.2);
}

/* ----- Muncul saat digulir (diatur efek.js) ----- */
.reveal { opacity: 0; }
.reveal.terlihat {
  opacity: 1;
  animation: naik 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

/* ----- Footer ----- */
.footer-grid a { transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--brass-light); }

/* ----- Login ----- */
.login-shell {
  background-color: var(--teal-ink);
  background-image: var(--pola-bintang), linear-gradient(135deg, #0F4C3A 0%, #0A3527 100%);
  background-size: 80px 80px, auto;
  background-position: 0 0, 0 0;
  animation: geser-pola-2 80s linear infinite;
}
.login-card {
  border-radius: 6px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.38);
  animation: naik 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

/* ----- Admin ----- */
.admin-sidebar { background: linear-gradient(180deg, var(--teal-ink) 0%, #072A1F 100%); }
.admin-nav a {
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.admin-nav a:hover { padding-left: 0.9rem; }
.admin-nav a.active { border-left-color: var(--brass); }
.admin-main > *:not(.notif) { animation: naik 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.stat-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 26px rgba(10,53,39,0.14); }
tbody tr:hover td { background: #E9F0E4; }

/* ----- Notifikasi (toast) ----- */
.notif {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 350px;
  max-width: calc(100vw - 2rem);
  padding: 0.9rem 1rem 0.95rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  border-left: 5px solid #3E9B5A;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(10,53,39,0.32);
  overflow: hidden;
  animation: notif-masuk 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards, notif-keluar 0.5s ease 5s forwards;
}
.notif::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: #3E9B5A;
  transform-origin: left;
  animation: notif-waktu 5.5s linear forwards;
}
.notif-ikon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3E9B5A;
  color: var(--white);
  font-weight: 700;
}
.notif-teks { flex: 1; font-size: 0.92rem; line-height: 1.4; }
.notif-tutup {
  background: none;
  border: 0;
  padding: 0 0.2rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.notif-error { border-left-color: #C4513B; }
.notif-error::after { background: #C4513B; }
.notif-error .notif-ikon { background: #C4513B; }

/* ---------- Gallery Card (Dokumentasi Fresh) ---------- */
.gallery-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(10,53,39,0.16);
}

.gallery-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0ede4;
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-card:hover .gallery-card-img img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,53,39,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
  color: var(--white);
}
.gallery-card-overlay svg {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-card:hover .gallery-card-overlay {
  background: rgba(10,53,39,0.35);
}
.gallery-card:hover .gallery-card-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.gallery-card-body {
  padding: 1rem 1.15rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gallery-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.gallery-card-date svg {
  color: var(--brass);
  flex-shrink: 0;
}

/* ---------- Modal Foto (Refreshed) ---------- */
.modal-foto {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-foto.aktif {
  display: flex;
  animation: muncul 0.3s ease both;
}
.modal-foto-konten {
  position: relative;
  background: var(--white);
  max-width: 760px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  animation: naik 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.modal-foto-konten img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #111111;
  display: block;
}
.modal-foto-info {
  padding: 1.2rem 1.5rem 1.3rem;
}
.modal-foto-info h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.modal-foto-info small {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--brass);
  font-weight: 600;
}
.modal-foto-info p {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.modal-foto-tutup {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.modal-foto-tutup:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .gallery-grid-new {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .modal-foto-konten {
    border-radius: 10px;
  }
}

/* =========================================================
   REVISI: INTERAKSI PENGGUNA & ADMIN, BADGE, DAN TRACKING
   ========================================================= */

.badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  line-height: 1.25;
  white-space: nowrap;
}
.badge-khutbah  { background: #E3EFEA; color: #0F4C3A; border: 1px solid #B7D3C7; }
.badge-kajian   { background: #F5EEDB; color: #7C5820; border: 1px solid #DFC794; }
.badge-laki     { background: #E8EEF7; color: #24477A; border: 1px solid #C2D2EA; }
.badge-perempuan{ background: #FBE9F0; color: #8A2451; border: 1px solid #E7B8CC; }
.badge-semua    { background: #EFEAF7; color: #4E2F7A; border: 1px solid #D3C3EA; }
.badge-menunggu { background: #FFF4DC; color: #8A5A00; border: 1px solid #E5C170; }
.badge-diterima { background: #E4F3E8; color: #1E5E32; border: 1px solid #9CD0AC; }
.badge-ditolak  { background: #FBEAE7; color: #8E2A1B; border: 1px solid #E2A398; }
.badge-lewat    { background: #ECEAE4; color: #666962; border: 1px solid #D2CFC6; }

.nav-badge {
  display: inline-block;
  background: var(--brass);
  color: var(--teal-ink);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
  line-height: 1.3;
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
}

.btn-aksi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.36rem 0.68rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn-aksi:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-terima { background: #1E6B3A; color: #FFFFFF; }
.btn-tolak  { background: #B03A27; color: #FFFFFF; }
.btn-wa     { background: #128C7E; color: #FFFFFF; }

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-tab {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.filter-tab:hover { border-color: var(--teal-deep); text-decoration: none; }
.filter-tab.active {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
}

.hp-pill {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: monospace;
  font-size: 0.84rem;
  background: var(--teal-soft);
  color: var(--teal-ink);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 820px) {
  .kontak-grid { grid-template-columns: 1fr; }
}

.info-cek-box {
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tracking-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal-deep);
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 8px 22px rgba(10, 53, 39, 0.06);
}
.tracking-card-highlight {
  border-top-color: var(--brass);
  background: #FFFDF8;
}

.admin-reply-box {
  padding: 0.9rem 1rem;
  border-radius: 5px;
  font-size: 0.92rem;
}
.reply-diterima { background: #E7F4EC; border: 1px solid #9CD0AC; color: #184C28; }
.reply-ditolak  { background: #FBEAE7; border: 1px solid #E2A398; color: #7A2316; }
.reply-menunggu { background: #FFF8E7; border: 1px solid #E5C170; color: #6E4900; }

.table-pengajuan td { line-height: 1.45; }

/* =========================================================
   AGENDA INTERAKTIF (KLIK DETAIL & LINK GOOGLE FORM)
   ========================================================= */

.agenda-card-clickable {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.agenda-desc-preview {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  line-height: 1.55;
  word-break: break-word;
}

.agenda-inline-link {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}
.agenda-inline-link:hover {
  color: var(--brass);
}

.agenda-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.agenda-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-deep);
}
.agenda-card-clickable:hover .agenda-card-cta {
  color: var(--brass);
}

.modal-agenda-konten {
  position: relative;
  background: var(--white);
  max-width: 620px;
  width: 100%;
  border-radius: 12px;
  border-top: 5px solid var(--brass);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: naik 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.modal-agenda-header {
  background: var(--cream);
  padding: 1.4rem 3rem 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-agenda-header .date-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.modal-agenda-header h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  color: var(--teal-ink);
}
.modal-agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.modal-agenda-body {
  padding: 1.4rem 1.5rem 1.6rem;
  max-height: 65vh;
  overflow-y: auto;
}

.modal-agenda-desc {
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.68;
  word-break: break-word;
}

.modal-agenda-tutup {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-agenda-tutup:hover {
  background: var(--brass);
  color: var(--white);
  transform: rotate(90deg);
}

/* =========================================================
   NOTIFIKASI KONFIRMASI PENGAJUAN UNTUK PENGGUNA UMUM
   ========================================================= */

.public-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #D9534F;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  animation: pulseNotif 1.8s infinite;
}

@keyframes pulseNotif {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.notif-konfirmasi-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(10, 53, 39, 0.08);
}

.notif-konfirmasi-diterima {
  background: #E7F4EC;
  border: 1px solid #8CC69F;
  border-left: 5px solid #1E6B3A;
  color: #164424;
}

.notif-konfirmasi-ditolak {
  background: #FBEAE7;
  border: 1px solid #E2A398;
  border-left: 5px solid #B03A27;
  color: #7A2316;
}

.notif-konfirmasi-isi {
  flex: 1;
  min-width: 240px;
}

.notif-konfirmasi-judul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.notif-konfirmasi-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.notif-konfirmasi-catatan {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.notif-konfirmasi-aksi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-tutup-notif {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  border-radius: 4px;
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.8;
}
.btn-tutup-notif:hover {
  opacity: 1;
}


/* =========================================================
   RUANG CHAT DUA ARAH PENGAJUAN KEGIATAN (ADMIN & PUBLIK)
   ========================================================= */

.badge-chat-baru {
  background: #D9534F;
  color: #FFFFFF;
  border: 1px solid #B53A36;
  animation: pulseNotif 1.8s infinite;
}

.row-chat-unread {
  background: #FFFDF5;
}

.notif-konfirmasi-chat {
  background: #E8F1F8;
  border: 1px solid #9EC1DE;
  border-left: 5px solid #1E5A8A;
  color: #153E60;
}

.chat-panel-admin {
  background: #F7F9F7;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem;
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--teal-ink);
  margin-bottom: 0.4rem;
  padding: 0 0.15rem;
}
.chat-panel-header span {
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-panel-public {
  background: #F7F9F7;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.95rem 1rem;
}

.chat-messages-box {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.35rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.chat-messages-public {
  max-height: 280px;
  padding: 0.65rem;
}

.chat-empty-hint {
  font-size: 0.81rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.85rem 0.6rem;
  line-height: 1.45;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}
.chat-bubble-row.is-left {
  justify-content: flex-start;
}
.chat-bubble-row.is-right {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.48rem 0.68rem;
  border-radius: 8px;
  font-size: 0.83rem;
  line-height: 1.42;
  word-break: break-word;
}

.bubble-pemohon {
  background: #F1EFE9;
  color: var(--ink);
  border: 1px solid #DDD8CC;
  border-bottom-left-radius: 2px;
}

.bubble-admin {
  background: #E3EFEA;
  color: #0D3D2E;
  border: 1px solid #B5D2C6;
  border-bottom-right-radius: 2px;
}

.bubble-admin-public {
  background: #E3EFEA;
  color: #0D3D2E;
  border: 1px solid #B5D2C6;
  border-bottom-left-radius: 2px;
}

.bubble-pemohon-self {
  background: #F5EEDB;
  color: #4D3714;
  border: 1px solid #DFC794;
  border-bottom-right-radius: 2px;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  opacity: 0.82;
  margin-bottom: 0.2rem;
}

.chat-text {
  font-size: 0.84rem;
}

.chat-reply-form {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-reply-form textarea {
  width: 100%;
  min-height: 54px;
  font-size: 0.83rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
}

.btn-chat-kirim {
  background: var(--teal-deep);
  color: #FFFFFF;
  width: 100%;
}

.decision-mini-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.decision-mini-box textarea {
  width: 100%;
  min-height: 48px;
  font-size: 0.81rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
}
