/* ================================================================
   LOA JOURNAL MANAGEMENT SYSTEM — MAIN STYLESHEET (MODERN)
   ================================================================ */

/* ── Root Variables ────────────────────────────────────────────── */
:root {
    --primary:      #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light:#3b82f6;
    --accent:       #f59e0b;
    --accent-dark:  #d97706;
    --success:      #059669;
    --danger:       #dc2626;
    --info:         #0891b2;
    --dark:         #0f172a;
    --dark-mid:     #1e293b;
    --dark-text:    #334155;
    --muted:        #64748b;
    --light:        #f8fafc;
    --border:       #e2e8f0;
    --card-shadow:  0 2px 16px rgba(0,0,0,.06);
    --card-shadow-hover: 0 8px 32px rgba(30,64,175,.12);
    --radius:       12px;
    --radius-lg:    18px;
    --font-main:    'Plus Jakarta Sans', 'Inter', sans-serif;
    --transition:   .22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: #f8fafc;
    color: var(--dark-text);
    line-height: 1.65;
    font-size: .96rem;
}

a { color: var(--primary-light); transition: color var(--transition); }
a:hover { color: var(--primary); }


/* ── Navbar ────────────────────────────────────────────────────── */
.main-navbar {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    box-shadow: none;
    transition: box-shadow var(--transition), background var(--transition);
    padding: .6rem 0;
}
.main-navbar.navbar-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    background: rgba(255,255,255,.99);
}

.brand-logo   { height: 42px; width: auto; max-width: 140px; object-fit: contain; }
.brand-icon-box {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: #fff; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30,64,175,.3);
}
.brand-name   { font-size: .95rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.brand-tagline{ font-size: .67rem; color: var(--muted); line-height: 1.2; }

.main-navbar .nav-link {
    color: var(--dark-text) !important;
    font-size: .875rem;
    font-weight: 500;
    padding: .45rem .75rem !important;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    position: relative;
}
.main-navbar .nav-link:hover  { color: var(--primary) !important; background: rgba(30,64,175,.05); }
.main-navbar .nav-link.active { color: var(--primary) !important; background: rgba(30,64,175,.08); font-weight: 600; }
.main-navbar .nav-link.active::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 2px; background: var(--primary); border-radius: 2px;
}

/* Toggler mobile */
.navbar-toggler { border: none; color: var(--dark-text); padding: .3rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(30,64,175,.15); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn { font-weight: 600; border-radius: 8px; transition: all var(--transition); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    box-shadow: 0 3px 12px rgba(30,64,175,.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 5px 20px rgba(30,64,175,.4);
    transform: translateY(-1px);
}
.btn-warning  { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-warning:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-1px); }

/* ── Hero Section ──────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    position: relative; overflow: hidden;
    padding: 54px 0 52px;
    margin-bottom: 0;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.22;
    color: #fff;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.65; margin-bottom: 0; }

/* Floating cards in hero */
.hero-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: .9rem 1rem;
    color: #fff;
    transition: transform .3s;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card-icon { font-size: 1.6rem; margin-bottom: .3rem; }

/* ── Stat Counter ──────────────────────────────────────────────── */
.stats-section {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background: var(--light);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.stat-card:hover { border-color: var(--primary-light); box-shadow: var(--card-shadow-hover); }
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; margin-top: .3rem; }

/* ── Section Styles ────────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--dark);
}
.section-subtitle { color: var(--muted); font-size: 1rem; }
.section-badge {
    display: inline-block;
    background: rgba(30,64,175,.1);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 100px;
    margin-bottom: .75rem;
}

/* ── Tracking Form ─────────────────────────────────────────────── */
.tracking-section { background: #fff; }
.tracking-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 16px 48px rgba(30,64,175,.2);
    color: #fff;
}
.tracking-card .form-control {
    border-radius: 10px 0 0 10px;
    border: none;
    font-size: 1rem;
    height: 52px;
    background: rgba(255,255,255,.95);
}
.tracking-card .btn {
    border-radius: 0 10px 10px 0;
    height: 52px;
    font-size: 1rem;
    white-space: nowrap;
}

/* ── Result Card ───────────────────────────────────────────────── */
.result-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.result-card-header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

/* ── Journal Cards ─────────────────────────────────────────────── */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.journal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
    height: 100%;
}
.journal-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.journal-icon-box {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; flex-shrink: 0;
}

/* ── Process Steps ─────────────────────────────────────────────── */
.steps-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step-item { text-align: center; position: relative; }
.step-item:not(:last-child)::after {
    content: '';
    position: absolute; top: 36px; left: calc(50% + 36px);
    width: calc(100% - 72px); height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    display: none;
}
@media (min-width: 768px) {
    .step-item:not(:last-child)::after { display: block; }
}
.step-number {
    width: 72px; height: 72px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    box-shadow: 0 8px 24px rgba(30,64,175,.25);
    position: relative; z-index: 1;
}
.step-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.step-desc { font-size: .875rem; color: var(--muted); }

/* ── CTA Section ───────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Request LOA Form ──────────────────────────────────────────── */
.request-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    padding: 2rem;
}
.form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--dark);
    margin-bottom: .4rem;
}
.form-control, .form-select {
    border-color: var(--border);
    border-radius: 8px;
    font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-control::placeholder { color: #b0b7c3; }
.input-group-text {
    background: var(--light);
    border-color: var(--border);
    color: var(--muted);
}

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
    content: '';
    position: absolute; left: 9px; top: 0; bottom: 0; width: 2px;
    background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -1.5rem;
    width: 18px; height: 18px; border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border);
    top: 4px;
}
.timeline-item-last .timeline-dot {
    box-shadow: 0 0 0 3px var(--primary-light), 0 0 12px rgba(59,130,246,.3);
}
.timeline-content { background: var(--light); border-radius: 8px; padding: .8rem 1rem; border: 1px solid var(--border); }

/* ── Document Cards ────────────────────────────────────────────── */
.doc-card {
    border-radius: 10px;
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    text-align: center;
    padding: 1.25rem 1rem;
    background: #fff;
}
.doc-card:hover { border-color: var(--primary-light); box-shadow: var(--card-shadow-hover); }
.doc-icon { font-size: 2rem; margin-bottom: .5rem; }

/* ── Admin Sidebar ─────────────────────────────────────────────── */
.admin-body { background: #f1f5f9; min-height: 100vh; }

.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    z-index: 1040;
    display: flex; flex-direction: column;
    overflow-y: auto;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; gap: .6rem;
    font-size: 1rem; font-weight: 700; color: #f1f5f9;
    text-decoration: none;
    flex-shrink: 0;
}
.sidebar-brand i { font-size: 1.3rem; color: var(--primary-light); }
.sidebar-brand img { height: 34px; width: auto; max-width: 100px; object-fit: contain; }

.sidebar-user {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; gap: .75rem;
    flex-shrink: 0;
}
.sidebar-user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .9rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-info .fw-semibold { color: #e2e8f0; font-size: .88rem; }
.sidebar-user-info .small { color: #94a3b8; font-size: .75rem; }

.sidebar-nav { padding: .75rem 0; flex: 1; }
.sidebar-section {
    padding: .85rem 1.25rem .3rem;
    font-size: .65rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #475569;
}
.sidebar-link {
    display: flex; align-items: center; gap: .7rem;
    padding: .6rem 1.25rem;
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-radius: 0;
    transition: all var(--transition);
    position: relative;
}
.sidebar-link i { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-link span { flex: 1; }
.sidebar-link:hover { color: #e2e8f0 !important; background: rgba(255,255,255,.06); }
.sidebar-link.active {
    color: #fff !important;
    background: rgba(59,130,246,.2);
}
.sidebar-link.active::before {
    content: '';
    position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 3px; background: var(--primary-light); border-radius: 0 3px 3px 0;
}

/* ── Admin Main ────────────────────────────────────────────────── */
.admin-main {
    margin-left: 260px;
    display: flex; flex-direction: column; min-height: 100vh;
    transition: margin var(--transition);
}
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: .8rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.admin-content { padding: 1.5rem; flex: 1; }

/* Admin cards */
.admin-stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}
.admin-stat-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.admin-stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.admin-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--dark); line-height: 1; }
.admin-stat-label { color: var(--muted); font-size: .82rem; font-weight: 500; }

/* ── Tables ────────────────────────────────────────────────────── */
.table-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.table-card .table { margin: 0; }
.table th {
    background: var(--light);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding: .85rem 1rem;
    white-space: nowrap;
}
.table td { padding: .85rem 1rem; vertical-align: middle; font-size: .88rem; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(30,64,175,.02); }
.table-responsive { border-radius: 0; }

/* ── Badges / Status ───────────────────────────────────────────── */
.badge { font-weight: 600; font-size: .73rem; padding: .35em .7em; border-radius: 6px; }
.badge-status-submitted  { background: rgba(234,179,8,.12); color: #92400e; border: 1px solid rgba(234,179,8,.3); }
.badge-status-accepted   { background: rgba(5,150,105,.12); color: #065f46; border: 1px solid rgba(5,150,105,.3); }
.badge-status-revision   { background: rgba(245,158,11,.12); color: #92400e; border: 1px solid rgba(245,158,11,.3); }
.badge-status-published  { background: rgba(30,64,175,.12); color: #1e40af; border: 1px solid rgba(30,64,175,.3); }
.badge-status-rejected   { background: rgba(220,38,38,.12); color: #ff6252; border: 1px solid rgba(220,38,38,.3); }
.badge-status-resubmit   { background: rgba(139,92,246,.12); color: #4c1d95; border: 1px solid rgba(139,92,246,.3); }

/* ── Cards General ─────────────────────────────────────────────── */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}
.card-header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}
.page-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(30,64,175,.25);
}

/* ── Alerts ────────────────────────────────────────────────────── */
.alert { border-radius: 10px; border: none; padding: .9rem 1.1rem; }
.alert-success { background: rgba(5,150,105,.1); color: #065f46; }
.alert-danger  { background: rgba(220,38,38,.1); color: #ff6252; }
.alert-info    { background: rgba(8,145,178,.1); color: #155e75; }
.alert-warning { background: rgba(234,179,8,.1); color: #92400e; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: #0c1828;
    color: #94a3b8;
    font-size: .9rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* Grid 4 kolom */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
}

/* Semua kolom */
.footer-col {}

/* Brand wrap (logo + nama dalam satu baris) */
.footer-brand-wrap {
    display: flex; align-items: center; gap: .7rem;
    margin-bottom: 1rem;
}
.footer-logo {
    height: 38px; width: auto; max-width: 120px;
    object-fit: contain; flex-shrink: 0;
}
.footer-brand-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
}
.footer-brand-name {
    color: #e2e8f0; font-size: 1rem; font-weight: 700;
    line-height: 1.2;
}

/* Deskripsi */
.footer-desc {
    color: #64748b; font-size: .84rem;
    line-height: 1.75; margin: 0 0 1.25rem;
}

/* Ikon sosial media */
.footer-socials {
    display: flex; gap: .5rem; flex-wrap: wrap;
}
.footer-social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; text-decoration: none; font-size: .9rem;
    transition: all var(--transition);
}
.footer-social-btn:hover {
    background: var(--primary); border-color: var(--primary);
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,64,175,.4);
}

/* Heading kolom */
.footer-col-heading {
    color: #94a3b8;
    font-size: .7rem; text-transform: uppercase;
    letter-spacing: .14em; font-weight: 700;
    margin-bottom: 1.2rem;
}

/* Daftar nav */
.footer-nav-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .05rem;
}
.footer-nav-list a {
    display: block;
    color: #64748b; text-decoration: none;
    font-size: .87rem;
    padding: .42rem 0;
    border-bottom: 1px solid transparent;
    transition: color var(--transition);
}
.footer-nav-list a:hover { color: #e2e8f0; }

/* Alamat */
.footer-address {
    display: flex; gap: .5rem; margin-top: .75rem;
    color: #475569; font-size: .8rem; line-height: 1.6;
}
.footer-address i { color: #3b82f6; margin-top: .15rem; flex-shrink: 0; }

/* Bottom bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.1rem 0;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    font-size: .78rem; color: #334155;
}
.footer-version-badge {
    color: #3b82f6; font-weight: 600; font-size: .72rem;
    background: rgba(59,130,246,.1);
    border: 1px solid rgba(59,130,246,.2);
    padding: .18rem .55rem; border-radius: 5px;
}

/* Responsif */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Back to Top ───────────────────────────────────────────────── */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border: none; border-radius: 50%;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(30,64,175,.4);
    opacity: 0; transform: translateY(20px);
    transition: all var(--transition);
    z-index: 1000; cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(30,64,175,.5); }

/* ── Mobile Sidebar Toggle ─────────────────────────────────────── */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,.5);
        z-index: 1039; display: none;
    }
    .sidebar-backdrop.show { display: block; }
}

/* ── Pagination ────────────────────────────────────────────────── */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid var(--border);
    color: var(--dark-text);
    font-size: .875rem;
    padding: .4rem .75rem;
}
.pagination .page-link:hover { background: rgba(30,64,175,.06); color: var(--primary); }
.pagination .page-item.active .page-link {
    background: var(--primary); border-color: var(--primary);
}

/* ── Misc ──────────────────────────────────────────────────────── */
.rounded-lg  { border-radius: var(--radius-lg) !important; }
.rounded-xl  { border-radius: 1.25rem !important; }
.shadow-soft { box-shadow: var(--card-shadow) !important; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Responsive Global ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .hero-section { padding: 60px 0 50px; }
    .hero-title   { font-size: 1.75rem; }
    .tracking-card { padding: 1.5rem; }
    .admin-content { padding: 1rem; }
    .admin-topbar  { padding: .7rem 1rem; }
    .page-header-card { padding: 1.25rem 1.25rem; }
}

@media (max-width: 480px) {
    .hero-section { padding: 50px 0 40px; }
    .stat-number  { font-size: 1.8rem; }
}

/* =============================================
   FOOTER MODERN
   ============================================= */
.site-footer {
    position: relative;
    background:
        radial-gradient(circle at 12% 15%, rgba(13,110,253,.18), transparent 45%),
        radial-gradient(circle at 88% 0%, rgba(111,66,193,.15), transparent 40%),
        linear-gradient(160deg, #0b1220 0%, #111a2e 55%, #0b1220 100%);
    color: #c9d4e5;
    padding: 4px 0 0;
    margin-top: 4px;
    overflow: hidden;
}

/* garis aksen atas */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1, #20c997, #0d6efd);
    background-size: 200% 100%;
    animation: footerAccent 8s linear infinite;
}
@keyframes footerAccent {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr;
    gap: 20px;
    padding-bottom: 20px;
}

.footer-col-heading {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
}

/* Brand */
.footer-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-logo { max-height: 44px; width: auto; }
.footer-brand-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(13,110,253,.35);
}
.footer-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}
.footer-desc {
    font-size: .92rem;
    line-height: 1.7;
    color: #9fb0c8;
    margin-bottom: 20px;
    max-width: 34ch;
}
.footer-desc em { color: #7db4ff; font-style: normal; font-weight: 600; }

/* Sosial */
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #c9d4e5;
    font-size: 1rem;
    transition: all .25s ease;
    text-decoration: none;
}
.footer-social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(13,110,253,.4);
}

/* Navigasi */
.footer-nav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .92rem;
    color: #9fb0c8;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.footer-nav-list a i {
    font-size: .7rem;
    color: #0d6efd;
    transition: transform .2s ease;
}
.footer-nav-list a:hover {
    color: #fff;
    transform: translateX(3px);
}
.footer-nav-list a:hover i { transform: translateX(2px); }

/* Kontak */
.footer-contact-item {
    display: flex;
    gap: 5px;
    margin-bottom: 14px;
    font-size: .9rem;
    line-height: 1.6;
    color: #9fb0c8;
}
.footer-contact-icon {
    flex: 0 0 34px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: rgba(13,110,253,.14);
    border: 1px solid rgba(13,110,253,.25);
    color: #7db4ff;
    font-size: .9rem;
}
.footer-contact-text a { color: #9fb0c8; text-decoration: none; transition: color .2s; }
.footer-contact-text a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .85rem;
    color: #8394ac;
    flex-wrap: wrap;
}
.footer-version-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(13,110,253,.14);
    border: 1px solid rgba(13,110,253,.3);
    color: #7db4ff;
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .04em;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px; height: 46px;
    border: none;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    box-shadow: 0 12px 26px rgba(13,110,253,.4);
    z-index: 1000;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* Responsif */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 575px) {
    .site-footer { padding-top: 20px; margin-top: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 20px; }
    .footer-bottom-bar { justify-content: center; text-align: center; }
    .footer-desc { max-width: 100%; }
}
