/* ============================================
   ADMIN PANEL — SHARED STYLES
   SDN Laladon 03
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f7;
    margin: 0;
    color: #1e2a3b;
    overflow-x: hidden; /* prevent horizontal scroll on mobile */
    max-width: 100vw;
    width: 100%;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── LAYOUT ── */
.admin-wrapper { display: flex; min-height: 100vh; overflow-x: hidden; width: 100%; max-width: 100vw; }

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(175deg, #0d0d1a 0%, #111827 50%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 1.5rem 1.4rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-shrink: 0;
}
.sidebar-brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245,158,11,.35);
}
.sidebar-brand-text { font-size: .95rem; font-weight: 700; color: #f8fafc; line-height: 1.2; }
.sidebar-brand-sub  { font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 400; }

.sidebar-section-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    padding: 1.35rem 1.4rem .35rem;
    flex-shrink: 0;
}

.sidebar-nav { list-style: none; padding: 0 .75rem; margin: 0; flex-shrink: 0; }
.sidebar-nav li { margin-bottom: .2rem; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .72rem 1rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all .2s ease;
    position: relative;
}
.sidebar-nav a:hover {
    color: #f8fafc;
    background: rgba(255,255,255,.06);
    border-left-color: rgba(245,158,11,.4);
}
.sidebar-nav a.active {
    color: #fbbf24;
    background: rgba(251,191,36,.1);
    border-left-color: #fbbf24;
    font-weight: 600;
}
.sidebar-nav a svg { flex-shrink: 0; opacity: .75; width: 17px; height: 17px; }
.sidebar-nav a.active svg { opacity: 1; color: #fbbf24; }

.sidebar-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.4rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    transition: color .2s;
    padding: .6rem .75rem;
    border-radius: 10px;
}
.sidebar-footer a:hover { color: #f87171; background: rgba(239,68,68,.08); }

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 199;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* Sticky form panel (desktop only) */
.form-panel-sticky { position: sticky; top: 80px; }
@media (max-width: 991px) {
    .form-panel-sticky { position: static; }
}


/* ─────────────────────────────────────────
   CONTENT AREA
───────────────────────────────────────── */
.admin-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .3s cubic-bezier(.4,0,.2,1);
    min-width: 0;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────
   TOPBAR
───────────────────────────────────────── */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: .875rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.sidebar-toggle {
    width: 36px; height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all .2s;
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: #f8fafc; color: #1e2a3b; border-color: #cbd5e1; }
.topbar-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0; line-height: 1.2; }
.topbar-subtitle { font-size: .75rem; color: #94a3b8; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: .85rem; }
.topbar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .825rem;
    box-shadow: 0 2px 8px rgba(245,158,11,.35);
    cursor: pointer;
}
.topbar-user-name { font-size: .825rem; font-weight: 600; color: #0f172a; margin: 0; text-align: right; }
.topbar-user-role { font-size: .7rem; color: #94a3b8; margin: 0; text-align: right; }
.topbar-notif {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #64748b;
    position: relative;
    transition: all .2s;
}
.topbar-notif:hover { background: #fef3c7; color: #d97706; border-color: #fcd34d; }
.notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ─────────────────────────────────────────
   PAGE INNER
───────────────────────────────────────── */
.admin-page { padding: 1.75rem; flex: 1; min-width: 0; overflow-x: hidden; }

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.page-title { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin: 0; }
.page-breadcrumb { font-size: .78rem; color: #94a3b8; margin: .2rem 0 0; }
.page-breadcrumb span { color: #64748b; font-weight: 500; }

/* ─────────────────────────────────────────
   STAT CARDS
───────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid #f1f5f9;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.stat-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon.amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.stat-icon.green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.stat-icon.blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.stat-icon.purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
.stat-icon.rose   { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #be123c; }
.stat-icon.cyan   { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 1.85rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: .2rem; }
.stat-label { font-size: .78rem; color: #64748b; font-weight: 500; }
.stat-delta { font-size: .72rem; font-weight: 600; margin-top: .35rem; display: inline-flex; align-items: center; gap: .25rem; }
.stat-delta.up   { color: #16a34a; }
.stat-delta.down { color: #dc2626; }

/* ─────────────────────────────────────────
   ADMIN CARD
───────────────────────────────────────── */
.admin-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}
.admin-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.admin-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.admin-card-title svg { color: #d97706; width: 18px; height: 18px; }
.admin-card-body { padding: 1.5rem; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border: none;
    border-radius: 9px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Poppins', sans-serif;
}
.btn-admin svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-admin-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.btn-admin-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245,158,11,.4);
}

.btn-admin-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-admin-secondary:hover { background: #e2e8f0; color: #1e293b; }

.btn-admin-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.btn-admin-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ─────────────────────────────────────────
   TABLE
───────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.admin-table thead th {
    padding: .8rem 1.25rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #64748b;
    white-space: nowrap;
}
.admin-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table td {
    padding: .875rem 1.25rem;
    font-size: .83rem;
    color: #374151;
    vertical-align: middle;
}

.tbl-thumb {
    width: 50px; height: 36px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
}
.tbl-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    flex-shrink: 0;
}
.tbl-name { font-weight: 600; color: #0f172a; font-size: .85rem; }
.tbl-sub  { font-size: .75rem; color: #94a3b8; margin-top: .1rem; }

/* Action buttons in table */
.action-wrap { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.btn-tbl {
    width: 30px; height: 30px;
    border-radius: 7px;
    border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    flex-shrink: 0;
}
.btn-tbl svg { width: 13px; height: 13px; }
.btn-tbl-edit   { background: #dbeafe; color: #1d4ed8; }
.btn-tbl-edit:hover   { background: #1d4ed8; color: #fff; transform: scale(1.1); }
.btn-tbl-delete { background: #fee2e2; color: #dc2626; }
.btn-tbl-delete:hover { background: #dc2626; color: #fff; transform: scale(1.1); }
.btn-tbl-view   { background: #dcfce7; color: #15803d; }
.btn-tbl-view:hover   { background: #15803d; color: #fff; transform: scale(1.1); }
.btn-tbl-reply  { background: #f3e8ff; color: #7c3aed; }
.btn-tbl-reply:hover  { background: #7c3aed; color: #fff; transform: scale(1.1); }

/* Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 50px;
}
.badge-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-published { background: #dcfce7; color: #15803d; }
.badge-draft     { background: #f1f5f9; color: #64748b; }
.badge-new       { background: #fef3c7; color: #92400e; }
.badge-read      { background: #f1f5f9; color: #64748b; }
.badge-rejected  { background: #fef2f2; color: #be123c; }

.cat-badge {
    display: inline-block;
    font-size: .67rem; font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.cat-pengumuman { background: #fef2f2; color: #991b1b; }
.cat-berita     { background: #dcfce7; color: #166534; }
.cat-event      { background: #fef9c3; color: #854d0e; }

/* Empty state */
.tbl-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #94a3b8;
    font-size: .875rem;
}
.tbl-empty-icon {
    width: 56px; height: 56px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: #cbd5e1;
}

/* Search/filter bar */
.table-toolbar {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}
.search-wrap svg {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 15px; height: 15px;
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: .6rem .85rem .6rem 2.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: .82rem;
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all .2s;
}
.search-input:focus { border-color: #f59e0b; background: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,.1); }
.filter-select {
    padding: .6rem .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: .82rem;
    font-family: 'Poppins', sans-serif;
    color: #374151;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
    transition: all .2s;
}
.filter-select:focus { border-color: #f59e0b; background: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,.1); }

/* ─────────────────────────────────────────
   FORMS
───────────────────────────────────────── */
.form-label-admin {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .45rem;
}
.form-control-admin {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .875rem;
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: all .2s;
}
.form-control-admin:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
textarea.form-control-admin { resize: vertical; min-height: 100px; }

/* ─────────────────────────────────────────
   ACTIVITY FEED
───────────────────────────────────────── */
.activity-item {
    display: flex;
    gap: 1rem;
    padding: .875rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: .15rem;
}
.activity-dot.amber  { background: #fef3c7; color: #d97706; }
.activity-dot.green  { background: #dcfce7; color: #16a34a; }
.activity-dot.blue   { background: #dbeafe; color: #2563eb; }
.activity-dot.purple { background: #f3e8ff; color: #7c3aed; }
.activity-dot.rose   { background: #ffe4e6; color: #be123c; }
.activity-text { font-size: .83rem; color: #374151; line-height: 1.5; flex: 1; }
.activity-text strong { color: #0f172a; font-weight: 600; }
.activity-time { font-size: .72rem; color: #94a3b8; margin-top: .2rem; }

/* ─────────────────────────────────────────
   ALERT / TOAST
───────────────────────────────────────── */
.alert-admin {
    padding: .875rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .85rem;
    font-weight: 500;
    border: 1.5px solid transparent;
}
.alert-admin svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.alert-error   { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

/* ─────────────────────────────────────────
   CHART CONTAINER
───────────────────────────────────────── */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   RESPONSIVE — COMPREHENSIVE
───────────────────────────────────────── */

/* ── ≤1024px: Sidebar collapse (tablet landscape / small desktop) ── */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-260px);
        box-shadow: none;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.18);
    }
    .admin-content { margin-left: 0; }
    .sidebar-toggle { display: flex; }
}

/* ── ≤768px: Tablet portrait ── */
@media (max-width: 768px) {
    .admin-page { padding: 1.25rem; }
    .admin-topbar { padding: .75rem 1.25rem; }

    /* Topbar: shrink user info earlier */
    .topbar-user-name,
    .topbar-user-role { font-size: .75rem; }

    /* Page header stacks */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .85rem;
    }
    .page-header .btn-admin { width: 100%; justify-content: center; }

    /* Stat cards: slightly smaller values */
    .stat-value { font-size: 1.6rem; }
    .stat-card  { padding: 1rem 1.15rem; }
    .stat-icon  { width: 46px; height: 46px; }

    /* Card header stacks */
    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .65rem;
    }
    .admin-card-header .btn-admin { width: 100%; justify-content: center; }

    /* Table toolbar stacks */
    .table-toolbar { flex-direction: column; align-items: stretch; }
    .search-wrap   { max-width: 100%; }
    .filter-select { width: 100%; }
    .table-toolbar .form-row { flex-direction: column; gap: .6rem; }
    .table-toolbar .btn-admin { width: 100%; justify-content: center; }

    /* Activity items */
    .activity-item { padding: .75rem 0; }

    /* Alert admin */
    .alert-admin { padding: .75rem 1rem; font-size: .82rem; }
}

/* ── ≤640px: Mobile landscape / large phones ── */
@media (max-width: 640px) {
    .admin-page { padding: 1rem; }
    .admin-topbar { padding: .6rem 1rem; }
    .topbar-title  { font-size: .9rem; }
    .topbar-subtitle { font-size: .68rem; }

    /* Stat values */
    .stat-value { font-size: 1.45rem; }
    .stat-label { font-size: .72rem; }
    .stat-card  { padding: .9rem 1rem; gap: .85rem; }
    .stat-icon  { width: 42px; height: 42px; border-radius: 12px; }

    /* Hide less-important table columns on mobile */
    .admin-table .hide-mobile { display: none; }

    /* Action buttons compact */
    .action-wrap { gap: .25rem; }
    .btn-tbl { width: 28px; height: 28px; }

    /* Gallery grid: 2 columns minimum */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; padding: 1rem; }

    /* Message card tighter */
    .msg-card { padding: 1rem; }

    /* Form panel full width on mobile */
    .form-panel { border-radius: 12px; }
}

/* ── ≤480px: Small mobile phones ── */
@media (max-width: 480px) {
    .admin-page { padding: .875rem; }
    .admin-topbar { padding: .55rem .875rem; gap: .5rem; }

    /* Gunakan parent .topbar-right agar lebih spesifik dari Bootstrap .d-none */
    .topbar-right .topbar-user-text { display: none; }
    .topbar-avatar { width: 32px; height: 32px; font-size: .75rem; }
    .topbar-notif  { width: 32px; height: 32px; }

    /* Page title smaller */
    .page-title { font-size: 1.1rem; }
    .page-breadcrumb { font-size: .72rem; }

    /* Stat cards: 2-col layout with compact design */
    .stat-value { font-size: 1.3rem; }
    .stat-card  { padding: .75rem .875rem; gap: .75rem; border-radius: 12px; }
    .stat-icon  { width: 38px; height: 38px; border-radius: 10px; }
    /* Gunakan .admin-page sebagai parent scope untuk specificity */
    .admin-page .stat-icon svg,
    .admin-page .stat-icon i { width: 18px; height: 18px; }

    /* Admin card */
    .admin-card { border-radius: 12px; }
    .admin-card-header { padding: .875rem 1rem; }
    .admin-card-body   { padding: 1rem; }
    .admin-card-title  { font-size: .875rem; }

    /* Table: compact cells on tiny phones */
    .admin-table thead th { padding: .65rem .875rem; font-size: .65rem; }
    .admin-table td       { padding: .7rem .875rem; font-size: .78rem; }

    /* Gallery grid: smaller phones use 1 or 2 columns */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; padding: .875rem; }
    .gallery-info { padding: .65rem .75rem; }
    .gallery-title { font-size: .78rem; }

    /* Message cards */
    .msg-card { padding: .875rem; border-radius: 12px; }

    /* Toolbar */
    .table-toolbar { padding: .875rem; }
    .search-input  { font-size: .78rem; }
    .filter-select { font-size: .78rem; }

    /* Buttons */
    .btn-admin { font-size: .75rem; padding: .5rem .875rem; }
    .btn-tbl   { width: 26px; height: 26px; }

    /* Sidebar brand adjust */
    .sidebar-brand-text { font-size: .88rem; }
    .sidebar-brand-sub  { font-size: .68rem; }

    /* Activity items */
    .activity-item { gap: .75rem; }
    .activity-dot  { width: 30px; height: 30px; border-radius: 8px; }
    .activity-text { font-size: .78rem; }
    .activity-time { font-size: .68rem; }

    /* Alert */
    .alert-admin { font-size: .78rem; padding: .65rem .875rem; }

    /* Form controls */
    .form-control-admin { font-size: .82rem; padding: .6rem .875rem; }
    .form-label-admin   { font-size: .75rem; }
}

/* ── Galeri page: form panel stack on mobile ── */
@media (max-width: 991px) {
    /* On tablet, form panel comes first (order swap via Bootstrap col) */
    .galeri-form-col { order: -1; }
}

/* ── Message card: header stacks on narrow screens ── */
/* Gunakan class semantik .msg-card-header agar tidak bergantung pada utility Bootstrap */
@media (max-width: 560px) {
    .msg-card .msg-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .4rem;
    }
    .msg-card .msg-card-meta {
        width: 100%;
        justify-content: space-between;
    }
}


/* ── LOGIN PAGE ── */
body.login-page {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
    margin: 0;
}

/* ── LEFT PANEL ── */
.login-left {
    flex: 1;
    background: linear-gradient(175deg, #0f0f1a 0%, #1a1a2e 45%, #16213e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
    top: -100px; left: -100px;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,165,0,0.06) 0%, transparent 70%);
    bottom: -80px; right: -80px;
}

.login-logo-wrap {
    width: 90px; height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(255,215,0,0.3);
    margin-bottom: 2rem;
    position: relative; z-index: 1;
}
.login-logo-wrap img {
    width: 64px; height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.login-school-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    letter-spacing: 2px;
    font-family: Impact, 'Arial Narrow Bold', sans-serif;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative; z-index: 1;
    margin-bottom: 0.5rem;
}
.login-school-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    position: relative; z-index: 1;
    margin-bottom: 3rem;
}

.login-features {
    list-style: none;
    width: 100%;
    max-width: 280px;
    position: relative; z-index: 1;
    padding: 0;
}
.login-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.login-features li:last-child { border-bottom: none; }
.login-features li .feat-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #FFD700;
    flex-shrink: 0;
}

.login-gold-bar {
    width: 60px; height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    margin: 2rem auto 0;
    position: relative; z-index: 1;
}

/* ── RIGHT PANEL ── */
.login-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #f0f2f5;
}

.login-card {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    animation: slideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
}
.login-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-6px); }
    40%,80%  { transform: translateX(6px); }
}

.login-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}
.input-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
}
.login-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    font-size: 0.92rem;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
}
.login-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
    background: #fff;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    padding: 0;
    transition: color 0.2s;
}
.toggle-pass:hover { color: #FFA500; }

.btn-login {
    width: 100%;
    padding: 0.9rem;
    background: #FFD700;
    color: #3d1f00;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background: #FFA500;
}
.btn-login:active { transform: scale(0.98); }

.login-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.login-back:hover { color: #FFA500; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1.25rem;
    color: #d1d5db;
    font-size: 0.75rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── MOBILE: Tampilan keren di HP ── */
@media (max-width: 768px) {
    body.login-page { flex-direction: column; }

    .login-left {
        flex: none;
        padding: 2.5rem 1.5rem 5rem;
        border-radius: 0 0 36px 36px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    .login-logo-wrap { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1rem; }
    .login-logo-wrap img { width: 52px; height: 52px; }
    .login-school-name { font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 0.3rem; }
    .login-school-sub  { font-size: 0.78rem; margin-bottom: 1.5rem; }

    .login-features { max-width: 100%; }
    .login-features li { font-size: 0.8rem; padding: 0.5rem 0; gap: 0.65rem; }
    .login-features li .feat-icon { width: 28px; height: 28px; border-radius: 7px; }
    .login-gold-bar { margin-top: 1.25rem; }

    .login-right {
        width: 100%;
        padding: 0 1.25rem 3rem;
        margin-top: -3.5rem;
        position: relative;
        z-index: 10;
        background: transparent;
        display: block;
    }
    .login-card {
        padding: 2.25rem 1.5rem 2rem;
        border-radius: 24px;
        box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    }
    .login-title    { font-size: 1.45rem; }
    .login-subtitle { font-size: 0.82rem; margin-bottom: 1.5rem; }
    .login-input    { font-size: 0.88rem; padding: 0.75rem 1rem 0.75rem 2.6rem; }
    .btn-login      { padding: 0.85rem; font-size: 0.9rem; }
}

@media (max-width: 400px) {
    .login-right { padding: 0 1rem 2.5rem; }
    .login-card  { padding: 2rem 1.25rem 1.75rem; }
}


/* Styles from admin_kepsek.php */
        .form-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .03);
            border: 1px solid #f1f5f9;
            overflow: hidden;
        }

        .form-card-header {
            padding: 1.25rem 1.75rem;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            align-items: center;
            gap: .75rem;
        }

        .form-card-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #d97706;
        }

        .form-card-title {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
            margin: 0;
        }

        .form-card-body {
            padding: 1.75rem;
        }

        .img-preview-wrap {
            border: 2px dashed #e2e8f0;
            border-radius: 12px;
            padding: 1.25rem;
            text-align: center;
            background: #f8fafc;
            transition: border-color .2s;
        }

        .img-preview-wrap:hover {
            border-color: #fcd34d;
        }

        .img-preview-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #fcd34d;
        }
    

/* Styles from admin_galeri.php */
        .cat-pill {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            font-size: .7rem;
            font-weight: 700;
            padding: .25rem .65rem;
            border-radius: 50px;
            text-transform: uppercase;
            letter-spacing: .3px;
        }

        .cat-kegiatan {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .cat-prestasi {
            background: #dcfce7;
            color: #15803d;
        }

        .cat-wisuda {
            background: #f3e8ff;
            color: #7c3aed;
        }

        .cat-lainnya {
            background: #f1f5f9;
            color: #64748b;
        }

        .galeri-thumb {
            width: 64px;
            height: 48px;
            object-fit: cover;
            border-radius: 8px;
            border: 1.5px solid #f1f5f9;
            transition: transform .2s;
        }

        .galeri-thumb:hover {
            transform: scale(1.8);
            z-index: 10;
            position: relative;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
            border-color: #fcd34d;
        }

        /* Modal Overlay */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .5);
            backdrop-filter: blur(4px);
            z-index: 1050;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all .3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-panel {
            background: #fff;
            border-radius: 20px;
            width: 95%;
            max-width: 520px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 2rem;
            box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
            transform: translateY(30px) scale(.95);
            transition: all .3s ease;
        }

        .modal-overlay.active .modal-panel {
            transform: translateY(0) scale(1);
        }

        .modal-header-custom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }

        .modal-header-custom h5 {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: .5rem;
            margin: 0;
        }

        .modal-close {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1.5px solid #e2e8f0;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .2s;
            color: #64748b;
        }

        .modal-close:hover {
            background: #fef2f2;
            border-color: #fca5a5;
            color: #ef4444;
        }

        .edit-preview-img {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
            border-radius: 12px;
            border: 1.5px solid #fcd34d;
            margin-bottom: 1rem;
        }

        .filter-bar {
            display: flex;
            align-items: center;
            gap: .5rem;
            flex-wrap: wrap;
        }

        .filter-pill {
            font-size: .78rem;
            padding: .4rem .85rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            border: 1.5px solid #e2e8f0;
            color: #475569;
            background: #fff;
            transition: all .2s;
        }

        .filter-pill:hover {
            border-color: #fcd34d;
            color: #d97706;
        }

        .filter-pill.active {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #fff;
            border-color: transparent;
        }
    

/* Styles from admin_fasilitas.php */
        .fasilitas-thumb {
            width: 64px;
            height: 48px;
            object-fit: cover;
            border-radius: 8px;
            border: 1.5px solid #f1f5f9;
            transition: transform .2s;
        }

        .fasilitas-thumb:hover {
            transform: scale(1.8);
            z-index: 10;
            position: relative;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
            border-color: #fcd34d;
        }

        /* Modal Overlay */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .5);
            backdrop-filter: blur(4px);
            z-index: 1050;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all .3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-panel {
            background: #fff;
            border-radius: 20px;
            width: 95%;
            max-width: 520px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 2rem;
            box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
            transform: translateY(30px) scale(.95);
            transition: all .3s ease;
        }

        .modal-overlay.active .modal-panel {
            transform: translateY(0) scale(1);
        }

        .modal-header-custom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }

        .modal-header-custom h5 {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: .5rem;
            margin: 0;
        }

        .modal-close {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1.5px solid #e2e8f0;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .2s;
            color: #64748b;
        }

        .modal-close:hover {
            background: #fef2f2;
            border-color: #fca5a5;
            color: #ef4444;
        }

        .edit-preview-img {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
            border-radius: 12px;
            border: 1.5px solid #fcd34d;
            margin-bottom: 1rem;
        }
    

/* Styles from teacher_form.php */
        .form-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .03);
            border: 1px solid #f1f5f9;
            overflow: hidden;
        }

        .form-card-header {
            padding: 1.25rem 1.75rem;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            align-items: center;
            gap: .75rem;
        }

        .form-card-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #d97706;
        }

        .form-card-title {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
            margin: 0;
        }

        .form-card-body {
            padding: 1.75rem;
        }

        .img-preview-wrap {
            border: 2px dashed #e2e8f0;
            border-radius: 12px;
            padding: 1.25rem;
            text-align: center;
            background: #f8fafc;
            transition: border-color .2s;
        }

        .img-preview-wrap:hover {
            border-color: #fcd34d;
        }

        .img-preview-circle {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #fcd34d;
        }

        .topbar-back {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            font-size: .85rem;
            font-weight: 600;
            color: #64748b;
            text-decoration: none;
            transition: color .2s;
        }

        .topbar-back:hover {
            color: #d97706;
        }
    

/* Styles from announcement_form.php */
        /* Form card */
        .form-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
            overflow: hidden;
        }

        .form-card-header {
            padding: 1.25rem 1.75rem;
            border-bottom: 1px solid #f3f4f6;
            display: flex;
            align-items: center;
            gap: .75rem;
        }

        .form-card-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: linear-gradient(135deg, #FFF3CD, #FFE082);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c8890a;
        }

        .form-card-title {
            font-size: 1rem;
            font-weight: 700;
            color: #1a1a2e;
            margin: 0;
        }

        .form-card-body {
            padding: 1.75rem;
        }

        /* Form elements */
        .form-label {
            font-size: .82rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: .4rem;
        }

        .form-control,
        .form-select {
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            padding: .65rem 1rem;
            font-size: .875rem;
            transition: border-color .2s, box-shadow .2s;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: #FFD700;
            box-shadow: 0 0 0 3px rgba(255, 215, 0, .15);
            outline: none;
        }

        textarea.form-control {
            resize: vertical;
            min-height: 180px;
        }

        /* Image preview */
        .img-preview-wrap {
            border: 2px dashed #e5e7eb;
            border-radius: 12px;
            padding: 1rem;
            margin-top: .6rem;
            text-align: center;
            background: #fafafa;
        }

        .img-preview-wrap img {
            max-height: 180px;
            border-radius: 8px;
            object-fit: cover;
        }

        /* Status select */
        .form-card .select-published {
            border-color: #bbf7d0;
            background: #f0fdf4;
        }

        .form-card .select-draft {
            border-color: #e5e7eb;
        }

        .topbar-back {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            font-size: .85rem;
            font-weight: 600;
            color: #64748b;
            text-decoration: none;
            transition: color .2s;
        }

        .topbar-back:hover {
            color: #d97706;
        }
    

/* ==========================================================================
   PPDB STYLES (SEPARATED FROM INLINE / INTERNAL BLOCKS)
   ========================================================================== */

.tab-btn {
    padding: .4rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all .2s;
}
.tab-btn:hover {
    border-color: #fbbf24;
    color: #d97706;
}
.tab-btn.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* Status badges in PPDB */
.badge-menunggu {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}
.badge-diterima {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}
.badge-ditolak {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}
.ppdb-badge {
    padding: .25rem .75rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

/* Premium Detail Sheet in PPDB */
.detail-label {
    font-size: .75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .15rem;
}
.detail-value {
    font-size: .92rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: .85rem;
}
.detail-value.empty {
    color: #cbd5e1;
    font-weight: 400;
    font-style: italic;
}
.detail-section-title {
    font-size: .8rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: .4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.detail-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #edf2f7;
    height: 100%;
}
.detail-alamat-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #edf2f7;
    margin-top: 1.25rem;
}

/* Detail Gold Button - Strictly NO !important (Using high specificity Parent-Child rule) */
.admin-table tbody tr td .action-wrap .btn-detail-gold {
    font-size: .73rem;
    font-weight: 700;
    color: #3d1f00;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
    transition: all 0.2s ease;
}
.admin-table tbody tr td .action-wrap .btn-detail-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 193, 7, 0.35);
    background: linear-gradient(135deg, #ffe033 0%, #ffca28 100%);
    color: #3d1f00;
}
.admin-table tbody tr td .action-wrap .btn-detail-gold:active {
    transform: translateY(0);
}

/* Custom Overrides for PPDB Admin Table cells and modal overlays */
.admin-table th:first-child {
    width: 50px;
}
.admin-table th.th-action {
    width: 130px;
}
.admin-table tbody td:first-child {
    color: #94a3b8;
    font-weight: 600;
}
.admin-table tbody td.col-reg-no {
    font-family: monospace;
    font-weight: 700;
    color: #1e293b;
}
.admin-table tbody td.col-name {
    font-weight: 700;
    color: #0f172a;
}
.admin-table tbody td span.gender-text {
    font-weight: 500;
}
.admin-table tbody td span.gender-text i {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 2px;
}
.admin-table tbody td span.gender-text i.gender-male {
    color: #3b82f6;
}
.admin-table tbody td span.gender-text i.gender-female {
    color: #ec4899;
}

/* Modal styling custom overrides for PPDB details */
.modal-dialog .modal-content-premium {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.modal-content-premium .modal-header-premium {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 1.25rem 1.5rem;
}
.modal-header-premium #det-no {
    font-family: monospace;
    font-weight: 800;
    color: #fcd34d;
    font-size: .85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: .15rem;
}
.modal-header-premium .modal-title {
    font-size: 1.15rem;
    margin: 0;
}
.modal-content-premium .modal-body-premium {
    padding: 1.75rem;
}
.detail-box #det-tgl-daftar {
    font-size: .82rem;
}
.detail-box #det-hp-link {
    color: #16a34a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.detail-section-title i,
.detail-alamat-box i {
    width: 15px;
    height: 15px;
    color: #d97706;
}
.detail-alamat-box #det-alamat {
    font-size: .95rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.75;
}
.modal-content-premium .modal-footer-premium {
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    padding: 1.25rem 1.75rem;
    justify-content: flex-start;
    gap: .5rem;
}
.modal-footer-premium form {
    display: inline;
}
.modal-footer-premium form.form-delete {
    margin-left: auto;
}
.modal-footer-premium .btn-success-premium {
    font-size: .82rem;
    border: none;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}
.modal-footer-premium .btn-danger-premium {
    font-size: .82rem;
    border: none;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}
.modal-footer-premium .btn-outline-danger-premium {
    font-size: .82rem;
}
.modal-footer-premium button i {
    width: 15px;
    height: 15px;
    margin-right: 4px;
    vertical-align: middle;
}
#modalCreate .modal-header-create {
    background: #1a1a2e;
}

/* Breadcrumb style overrides */
.page-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}
.page-breadcrumb a:hover {
    color: #64748b;
}

/* Excel export button style */
.page-header .btn-export-excel {
    font-size: .8rem;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-header .btn-export-excel:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Admin Card header text */
.admin-card-header small {
    color: #94a3b8;
}

/* General lucide icon sizes for clean inline separation */
.i-xs { width: 13px; height: 13px; }
.i-sm { width: 14px; height: 14px; }
.i-md { width: 16px; height: 16px; }
.i-lg { width: 18px; height: 18px; }
.i-xl { width: 22px; height: 22px; }
.i-2xl { width: 24px; height: 24px; }
.i-3xl { width: 28px; height: 28px; }
.i-4xl { width: 36px; height: 36px; }

    
