/* ================================================
   SISTEM PENGADUAN MASYARAKAT — Custom Style
   ================================================ */
:root {
    --brand: #22c55e;
    --brand-dark: #15803d;
    /* Overlay lebih tipis: gambar jelas, teks tetap terbaca */
    --overlay: linear-gradient(155deg, rgba(6,44,24,.50) 0%, rgba(3,22,13,.58) 55%, rgba(2,15,9,.66) 100%);
}

* { -webkit-tap-highlight-color: transparent; }

body.app-body {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: #04150c;
    color: #eef7f1;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Background layar penuh (foto sekolah) ---------- */
.page-bg {
    position: fixed; inset: 0; z-index: -2;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    animation: slowZoom 25s ease-in-out infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.09); } }

.page-overlay { position: fixed; inset: 0; z-index: -1; background: var(--overlay); }
.page-overlay-admin { opacity: .97; }

/* ---------- Navbar kaca ---------- */
.glass-nav {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.glass-nav .nav-link { color: rgba(255,255,255,.85); font-weight: 500; transition: .2s; }
.glass-nav .nav-link:hover { color: #fff; transform: translateY(-1px); }

.brand-icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 12px; color: #fff;
    box-shadow: 0 4px 14px rgba(34,197,94,.4);
}

/* ---------- Kartu kaca ---------- */
.card-glass {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 1.1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    position: relative;
}

.text-gradient {
    background: linear-gradient(90deg, #4ade80, #a3e635, #fde047);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 62px); }
.hero-badge {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.25);
    letter-spacing: 2px; font-size: .75rem; font-weight: 600;
}
.hero-title { font-size: clamp(1.9rem, 4.5vw, 3.4rem); line-height: 1.25; }
.hero-sub { max-width: 640px; color: rgba(255,255,255,.75); }

.stat-card { transition: .25s; }
.stat-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.35); }

/* ---------- Ikon ---------- */
.icon-circle {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(34,197,94,.35);
}
.icon-sm {
    width: 46px; height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: #fff; border-radius: 12px;
}

/* ---------- Kartu kategori & langkah ---------- */
.kategori-card { transition: .25s; cursor: pointer; }
.kategori-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.35); }

.step-num {
    width: 54px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 700; color: #fff;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.3);
}

/* ---------- Tabel ---------- */
.kategori-badge { background: rgba(255,255,255,.15) !important; }
.table { --bs-table-bg: transparent; --bs-table-color: #eef7f1; }
.table thead th { border-bottom: 1px solid rgba(255,255,255,.2) !important; }

/* ---------- Form ---------- */
.form-control, .form-select { background-color: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.35); }
.form-control:focus, .form-select:focus {
    background-color: #fff; border-color: var(--brand);
    box-shadow: 0 0 0 .25rem rgba(34,197,94,.25);
}
.search-bar {
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50rem; overflow: hidden;
}
.search-bar .form-control { background: transparent; color: #fff; border: 0; box-shadow: none; }
.search-bar .form-control::placeholder { color: rgba(255,255,255,.5); }

/* ---------- Tanggapan ---------- */
.tanggapan-item {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-left: 4px solid var(--brand);
}
.isi-pengaduan { line-height: 1.85; color: rgba(255,255,255,.9); }

/* ---------- Layout Admin ---------- */
.admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 1030;
    background: linear-gradient(180deg, rgba(6,44,24,.97), rgba(3,22,13,.98));
    border-right: 1px solid rgba(255,255,255,.12);
    padding: 1.2rem 0;
}
@media (min-width: 992px) { .admin-content { margin-left: 260px; } }
.sidebar-brand { padding: .4rem 1.5rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 1rem; }

.admin-link {
    display: block; padding: .65rem 1rem; border-radius: .8rem;
    color: rgba(255,255,255,.75); text-decoration: none; font-weight: 500; transition: .2s;
}
.admin-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-link.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; box-shadow: 0 6px 18px rgba(34,197,94,.35);
}
.admin-offcanvas { background: linear-gradient(180deg, #062c18, #03160d); color: #fff; }

.topbar {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: .8rem 0;
}
.stat-hover { transition: .2s; }
.stat-hover:hover { transform: translateY(-4px); }

.footer { border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 575.98px) {
    .hero { min-height: auto; }
    .card-glass { border-radius: .9rem; }
}
/* Modal admin tema gelap */
.modal-dark {
    background: linear-gradient(180deg, #0a2e1c, #062316);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
}
.modal-dark .form-label { color: rgba(255,255,255,.85); }
/* ---------- Logo Sekolah ---------- */
.brand-logo {
    width: 42px; height: 42px;
    object-fit: contain;
    background: rgba(255,255,255,.95);
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-logo {
    width: 110px; height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.5));
}
.auth-logo {
    width: 88px; height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
}
.preview-logo {
    width: 96px; height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
}
.w-fit { width: fit-content; }