/* =====================================================================
   assets/css/admin.css - Tema panel admin (hijau islami)
   ===================================================================== */
:root {
  --green-950: #08331f; --green-900: #0f5132; --green-800: #146c43; --green-700: #198754;
  --green-100: #d1e7dd; --green-50: #eef7f2; --cream: #faf6ec; --gold: #c9a24b;
  --sidebar-w: 260px;
}
body.admin-body { font-family: 'Poppins', system-ui, sans-serif; background: #f2f6f4; color: #1f2d27; }
.admin-body a { color: var(--green-700); }

/* Sidebar */
.sidebar, .sidebar.offcanvas-start { --bs-offcanvas-width: var(--sidebar-w); width: var(--sidebar-w) !important; max-width: 85vw; background: linear-gradient(180deg, var(--green-950), var(--green-900)); color: #fff; position: fixed; inset: 0 auto 0 0; z-index: 1045; display: flex; flex-direction: column; }
.sidebar .offcanvas-body { padding: 0; }
@media (min-width: 992px) { .sidebar { transform: none !important; visibility: visible !important; } }
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1.2rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand small { color: #9fcdb5; }
.brand-logo { overflow: hidden; width: 42px; height: 42px; border-radius: 12px; background: var(--gold); color: #3a2c05; display: grid; place-items: center; font-size: 1.35rem; }
.sidebar-nav { padding: 1rem .8rem; overflow-y: auto; flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; margin-bottom: .2rem; border-radius: 10px; color: #cfe8db; text-decoration: none; font-size: .92rem; font-weight: 500; transition: all .2s; }
.sidebar-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-nav a.active { background: var(--green-700); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.sidebar-nav i { font-size: 1.15rem; }
.sidebar-nav hr { border-color: rgba(255,255,255,.15); }

/* Main */
.admin-main { margin-left: 0; min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 992px) { .admin-main { margin-left: var(--sidebar-w); } }
.admin-topbar { background: #fff; padding: .85rem 1.5rem; display: flex; align-items: center; gap: .9rem; box-shadow: 0 1px 8px rgba(15,81,50,.08); position: sticky; top: 0; z-index: 1020; }
.admin-topbar h1 { color: var(--green-900); font-weight: 700; }
.admin-content { padding: 1.5rem; flex: 1; }
.admin-footer { padding: 1rem 1.5rem; font-size: .8rem; color: #70827a; text-align: center; }

/* Komponen */
.card { border: 0; border-radius: 14px; box-shadow: 0 4px 18px rgba(15,81,50,.08); }
.card-header { background: #fff; border-bottom: 1px solid #e6efe9; font-weight: 600; color: var(--green-900); border-radius: 14px 14px 0 0 !important; padding: 1rem 1.25rem; }
.btn { border-radius: 10px; font-weight: 500; }
.btn-emerald { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-emerald:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.form-label { font-weight: 600; font-size: .85rem; color: var(--green-900); }
.form-control, .form-select { border-radius: 10px; border-color: #cfdcd5; }
.form-control:focus, .form-select:focus { border-color: var(--green-700); box-shadow: 0 0 0 .2rem rgba(25,135,84,.18); }
.table thead th { background: var(--green-50); color: var(--green-900); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; white-space: nowrap; }
.table td { vertical-align: middle; }

/* Kartu statistik */
.stat-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(15,81,50,.08); height: 100%; border-left: 5px solid var(--green-700); text-decoration: none; color: inherit; transition: transform .2s; }
.stat-card:hover { transform: translateY(-3px); color: inherit; }
.stat-card .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--green-50); color: var(--green-700); flex: 0 0 auto; }
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--green-900); line-height: 1.1; }
.stat-card .lbl { font-size: .82rem; color: #62736b; }
.stat-card.gold { border-left-color: var(--gold); } .stat-card.gold .ico { background: #faf3df; color: #a67f1d; }

/* Grid foto admin */
.thumb-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(15,81,50,.1); height: 100%; display: flex; flex-direction: column; }
.thumb-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--green-100); }
.thumb-card .body { padding: .75rem; flex: 1; font-size: .85rem; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(135deg, var(--green-950), var(--green-800)); position: relative; overflow: hidden; font-family: 'Poppins', sans-serif; }
.login-page::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M40 6l8.5 20.5L69 20l-6.5 21L80 40l-17.5-1L69 60l-20.5-6.5L40 74l-8.5-20.5L11 60l6.5-21L0 40l17.5 1L11 20l20.5 6.5z'/%3E%3C/g%3E%3C/svg%3E"); }
.login-card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 2.2rem; box-shadow: 0 25px 60px rgba(0,0,0,.35); }
.login-card .logo { width: 70px; height: 70px; margin: -4.2rem auto 1rem; border-radius: 20px; background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; display: grid; place-items: center; font-size: 2.1rem; border: 5px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.login-card .bismillah { font-family: 'Amiri', serif; color: var(--gold); font-size: 1.4rem; text-align: center; }

/* Tab pengaturan */
.nav-pills .nav-link { color: var(--green-900); background: #fff; border-radius: 10px; font-weight: 500; font-size: .9rem; box-shadow: 0 1px 6px rgba(15,81,50,.08); }
.nav-pills .nav-link.active { background: var(--green-700); color: #fff; }
