/* ============================================================
   Admin Panel STBM Dua Saudara — gaya khusus (di luar Tailwind)
   ============================================================ */

.admin-side {
    position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 60;
    display: flex; flex-direction: column;
    background: linear-gradient(178deg, #0B1D33 0%, #0A1220 100%);
    transform: translateX(-100%);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.admin-side.open { transform: translateX(0); box-shadow: 30px 0 60px -20px rgba(10,18,32,.5); }
.side-overlay {
    position: fixed; inset: 0; z-index: 55; background: rgba(10,18,32,.55);
    backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.side-overlay.show { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) {
    .admin-side { transform: translateX(0); }
    .side-overlay { display: none; }
}

.admin-nav::-webkit-scrollbar { width: 6px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(192,146,78,.35); border-radius: 99px; }

.admin-link {
    display: flex; align-items: center; gap: 12px;
    margin: 2px 12px; padding: 10px 14px; border-radius: 12px;
    color: rgba(253,250,245,.62); font-size: 13.5px; font-weight: 600;
    transition: all .25s ease;
}
.admin-link:hover { color: #E3B23C; background: rgba(255,255,255,.05); }
.admin-link.active {
    color: #E3B23C;
    background: linear-gradient(90deg, rgba(192,146,78,.22), rgba(192,146,78,.06));
    box-shadow: inset 2.5px 0 0 #C0924E;
}

.admin-main { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .admin-main { margin-left: 264px; } }

.admin-topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 14px;
    min-height: 72px; padding: 12px 22px;
    background: rgba(253,250,245,.86); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192,146,78,.25);
}

.admin-content { padding: 26px 22px 60px; max-width: 1180px; width: 100%; margin: 0 auto; }
@media (min-width: 768px) { .admin-content { padding: 34px 34px 70px; } }

/* ---------- Kartu & panel ---------- */
.panel {
    background: #fff; border: 1px solid rgba(192,146,78,.28); border-radius: 18px;
    box-shadow: 0 18px 44px -30px rgba(138,101,48,.28);
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 22px; border-bottom: 1px solid rgba(192,146,78,.2);
}
.panel-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 18px; color: #0A1220; }
.panel-body { padding: 22px; }

.dash-card {
    position: relative; overflow: hidden; display: block;
    background: #fff; border: 1px solid rgba(192,146,78,.28); border-radius: 18px;
    padding: 20px 22px; transition: all .35s ease;
}
.dash-card:hover { transform: translateY(-4px); border-color: rgba(192,146,78,.6); box-shadow: 0 24px 48px -26px rgba(138,101,48,.4); }
.dash-card .dc-num {
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 34px; line-height: 1;
    background: linear-gradient(115deg, #E3B23C, #8A6530);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-card .dc-icon {
    position: absolute; right: -8px; bottom: -10px; width: 74px; height: 74px;
    color: rgba(192,146,78,.14);
}

/* ---------- Tabel ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
    text-align: left; padding: 12px 14px; font-size: 10.5px; letter-spacing: .14em;
    text-transform: uppercase; color: #8A6530; font-weight: 800;
    border-bottom: 1.5px solid rgba(192,146,78,.35); background: rgba(241,232,216,.5);
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid rgba(192,146,78,.15); vertical-align: middle; }
.tbl tr:hover td { background: rgba(241,232,216,.35); }
.tbl .thumb {
    width: 64px; height: 42px; object-fit: cover; border-radius: 8px;
    border: 1px solid rgba(192,146,78,.35); background: #F1E8D8;
}

/* ---------- Tombol ---------- */
.abtn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 800;
    letter-spacing: .02em; cursor: pointer; transition: all .25s ease; border: 1px solid transparent;
}
.abtn-gold {
    background: linear-gradient(120deg, #E3B23C, #C0924E); color: #0A1220;
    box-shadow: 0 12px 26px -14px rgba(192,146,78,.7);
}
.abtn-gold:hover { transform: translateY(-1.5px); box-shadow: 0 16px 30px -14px rgba(192,146,78,.85); }
.abtn-ghost { border-color: rgba(192,146,78,.5); color: #8A6530; background: transparent; }
.abtn-ghost:hover { background: rgba(192,146,78,.1); }
.abtn-danger { color: #B4463A; border-color: rgba(180,70,58,.4); background: transparent; }
.abtn-danger:hover { background: rgba(180,70,58,.08); }
.abtn-sm { padding: 7px 13px; font-size: 12px; }

/* ---------- Form ---------- */
.flabel { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #8A6530; margin-bottom: 7px; }
.finput, .ftextarea, .fselect {
    width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 14px; color: #0A1220;
    background: #FDFAF5; border: 1.5px solid rgba(192,146,78,.35); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.finput:focus, .ftextarea:focus, .fselect:focus {
    border-color: #C0924E; box-shadow: 0 0 0 4px rgba(192,146,78,.16);
}
.ftextarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.ftextarea.lines { min-height: 190px; }
.fhint { margin-top: 6px; font-size: 12px; color: rgba(10,18,32,.45); line-height: 1.55; }
.field { margin-bottom: 22px; }

.img-field { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.img-prev {
    width: 132px; height: 88px; object-fit: cover; border-radius: 12px;
    border: 1.5px solid rgba(192,146,78,.4); background: #F1E8D8;
}
.img-prev-empty {
    width: 132px; height: 88px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    border: 1.5px dashed rgba(192,146,78,.5); color: rgba(138,101,48,.55); font-size: 11px; font-weight: 700;
    background: rgba(241,232,216,.5);
}

/* Baris berulang (rows editor) */
.rep-row {
    display: grid; gap: 10px; align-items: start;
    padding: 14px; border: 1.5px dashed rgba(192,146,78,.4); border-radius: 14px;
    background: rgba(241,232,216,.35); margin-bottom: 10px; position: relative;
}
.rep-row .rep-del {
    position: absolute; top: 8px; right: 8px;
    width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #B4463A; background: rgba(180,70,58,.1); cursor: pointer; transition: background .2s;
}
.rep-row .rep-del:hover { background: rgba(180,70,58,.22); }
.rep-add {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    font-size: 12.5px; font-weight: 800; color: #8A6530;
    padding: 9px 15px; border-radius: 999px; border: 1.5px dashed rgba(192,146,78,.55);
    transition: all .2s;
}
.rep-add:hover { background: rgba(192,146,78,.12); border-style: solid; }

/* ---------- Flash ---------- */
.flash {
    margin-bottom: 20px; padding: 13px 18px; border-radius: 14px;
    font-size: 13.5px; font-weight: 600; line-height: 1.6;
}
.flash-ok  { background: rgba(94,140,84,.12); color: #3F6B3A; border: 1px solid rgba(94,140,84,.35); }
.flash-err { background: rgba(180,70,58,.09); color: #9A3B31; border: 1px solid rgba(180,70,58,.3); }

/* ---------- Badge kecil ---------- */
.db-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
}
.db-on  { color: #3F6B3A; background: rgba(94,140,84,.12); border: 1px solid rgba(94,140,84,.3); }
.db-off { color: #9A3B31; background: rgba(180,70,58,.09); border: 1px solid rgba(180,70,58,.3); }

/* ---------- Login ---------- */
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px; position: relative; overflow: hidden;
    background: radial-gradient(1100px 500px at 85% -10%, rgba(192,146,78,.22), transparent 60%),
                radial-gradient(800px 420px at -10% 110%, rgba(192,146,78,.16), transparent 55%),
                linear-gradient(165deg, #0B1D33 0%, #0A1220 100%);
}
.login-card {
    width: 100%; max-width: 420px; position: relative; z-index: 2;
    background: rgba(253,250,245,.97); border-radius: 24px; padding: 38px 34px;
    border: 1px solid rgba(192,146,78,.4);
    box-shadow: 0 50px 100px -40px rgba(0,0,0,.6);
}
.login-dots {
    position: absolute; inset: 0; z-index: 1; opacity: .5;
    background-image: radial-gradient(rgba(192,146,78,.25) 1px, transparent 1.5px);
    background-size: 26px 26px;
}
