/* index.css — Theme khusus halaman index */
/* Palette from user */
:root{
  --color-gray:  #F2F2F2;
  --color-yellow:#F7D914;
  --color-orange:#F0C001;
  --color-green: #8DA03C;
  --text-dark:   #203020;
}

/* ===== Base & Sticky Footer ===== */
html, body{
  background-color: var(--color-gray);
  color: var(--text-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  height: 100%;
}
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{ flex: 1 0 auto; }
.footer{ margin-top: auto; }

/* ===== Navbar with two top lines ===== */
.navbar{
  background:#fff;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-bottom: none;
  margin-bottom: 16px;
}
.navbar::before,
.navbar::after{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.navbar::before{ background: var(--color-green); }
.navbar::after{  background: var(--color-yellow); top: 4px; }

/* ===== Navbar brand: mobile vertical (center) → desktop horizontal (left-right) ===== */
.navbar-brand{
  display: flex;
  flex-direction: column;         /* mobile: atas–bawah */
  align-items: center;
  text-align: center;
  margin: auto;
}
.navbar-brand .logo{
  max-height: 60px;               /* aman di mobile */
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
  transform: none !important;
}
.navbar-brand .brand-text{
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  font-size: 1rem;
}
@media (min-width: 992px){
  .navbar-brand{
    flex-direction: row;           /* desktop: kiri–kanan */
    align-items: center;
    text-align: left;
  }
  .navbar-brand .logo{
    max-height: 80px;              /* lebih proporsional di laptop */
    margin-bottom: 0;
    margin-right: 12px;            /* spasi antara logo & teks */
  }
  .navbar-brand .brand-text{
    font-size: 1.15rem;            /* sedikit lebih besar */
    text-align: left;
  }
}

/* ===== Hero section (judul + subjudul) ===== */
.hero h1{
  font-weight: 700;
  text-align: center;
  letter-spacing: .2px;
}
.hero p{
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

/* ===== Menu Option Boxes ===== */
@keyframes subtle-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}
.menu-option{
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  user-select: none;
  position: relative;
  isolation: isolate;
}
.menu-option i{
  display: block;
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .9;
  line-height: 1;
}
.menu-option::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px; /* border tipis bergradasi */
  background: linear-gradient(135deg, var(--color-green), var(--color-yellow));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .18s ease;
}
.menu-option:hover::after{ opacity: .7; }
.menu-option:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
}
.menu-option:active{
  transform: translateY(-2px) scale(0.995);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.menu-option:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--color-yellow) 40%, white);
  outline-offset: 2px;
}

/* Hover color variations (opsional) */
.menu-standar-layanan:hover{ background: color-mix(in oklab, var(--color-green) 10%, white); }
.menu-survey-layanan:hover{  background: color-mix(in oklab, var(--color-yellow) 12%, white); }
.menu-hasil-survey:hover{    background: color-mix(in oklab, var(--color-orange) 10%, white); }
/* ===== Override: Admin Login agar tidak floating & nempel di footer kanan ===== */
.footer-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer .admin-login-link{
  position: static !important;   /* hilangkan floating */
  right: auto; bottom: auto;     /* reset */
  background: transparent;       /* menyatu dengan warna footer */
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;                    /* kecil & subtle */
  font-size: .82rem;             /* lebih kecil */
  text-decoration: none;
  box-shadow: none;
  opacity: .85;
}

.footer .admin-login-link:hover{
  opacity: 1;
  text-decoration: underline;    /* subtle hover */
}

/* Opsional: pada layar kecil, selaraskan tampilan */
@media (max-width: 576px){
  .footer-row{
    flex-direction: row;
  }
  .footer .admin-login-link{
    font-size: .8rem;
  }
}

/* ===== Admin Login Button (kanan bawah) ===== */

/* ===== Footer ===== */
.footer{
  background: var(--color-green);
  color: #fff;
  padding: 1rem;
  text-align: center;
}

#popup-survey .popup-content{ background:#fff; padding:16px 18px; border-radius:12px; text-align:center; max-width:380px; width:min(92vw,380px); box-shadow:0 8px 22px rgba(0,0,0,.22); position:relative; }
#popup-survey .popup-actions{ display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
#popup-survey .popup-btn{ display:block; padding:10px 12px; border-radius:10px; text-decoration:none; font-weight:700; border:2px solid transparent; font-size:0.95rem; }
#popup-survey h3{ margin:6px 0 8px; font-weight:700; font-size:1.05rem; }
#popup-survey .popup-desc{ margin:0 0 10px; color:#4b4b4b; font-size:.95rem; }
