@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Serif:wght@400;700&display=swap');

:root {
    --primary:       #1a3a5c;
    --primary-dark:  #0f2340;
    --primary-light: #2356884d;
    --accent:        #c8a84b;
    --accent-light:  #f0d98a;
    --success:       #1a7f4b;
    --danger:        #b91c1c;
    --warning:       #b45309;
    --info:          #1e5fa3;

    --bg:            #f0f4f8;
    --bg-white:      #ffffff;
    --card-bg:       #ffffff;
    --sidebar-bg:    #0f2340;

    --text-primary:  #1a2535;
    --text-secondary:#4a5568;
    --text-muted:    #718096;
    --border:        #d1dae6;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,.1);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.12);
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --transition: all 0.25s ease;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 15px;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }

/* ===== TOPBAR RESMI ===== */
.topbar-resmi {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent);
}
.topbar-resmi .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-resmi span { display: flex; align-items: center; gap: 6px; }

/* ===== HEADER PUBLIC ===== */
.public-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 70px;
    max-width: 1280px;
    margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-icon {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.4rem;
}
.logo-text-main { font-size: 1.1rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-text-sub  { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { background: var(--primary); color: white; }

.nav-auth { display: flex; gap: 8px; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border); }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-wrap  { padding: 36px 24px; max-width: 1280px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.875rem; cursor: pointer;
    transition: var(--transition); border: none; font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(26,58,92,.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(26,58,92,.4); transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 12px rgba(200,168,75,.35); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost   { background: var(--bg); border: 1px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--border); color: var(--text-primary); }
.btn-success { background: var(--success); color: white; }
.btn-danger  { background: var(--danger);  color: white; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.card-title i { color: var(--primary); }
.card-body { padding: 24px; }

/* ===== STAT CARDS ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card.green  { border-left-color: var(--success); }
.stat-card.red    { border-left-color: var(--danger); }
.stat-card.gold   { border-left-color: var(--accent); }
.stat-card.blue   { border-left-color: var(--info); }
.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
    background: rgba(26,58,92,0.08); color: var(--primary);
}
.stat-card.green  .stat-icon { background: rgba(26,127,75,0.1);  color: var(--success); }
.stat-card.red    .stat-icon { background: rgba(185,28,28,0.1);   color: var(--danger); }
.stat-card.gold   .stat-icon { background: rgba(200,168,75,0.15); color: var(--warning); }
.stat-card.blue   .stat-icon { background: rgba(30,95,163,0.1);   color: var(--info); }
.stat-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.stat-sub   { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
table.data-table thead tr { background: #f7f9fc; }
table.data-table th {
    padding: 12px 16px; text-align: left;
    font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.8px;
    border-bottom: 2px solid var(--border);
}
table.data-table td { padding: 14px 16px; border-bottom: 1px solid #edf2f7; font-size: 0.875rem; vertical-align: middle; }
table.data-table tbody tr:hover { background: #f7f9fc; }
table.data-table tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 99px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-primary { background: rgba(26,58,92,0.1);  color: var(--primary); }
.badge-success { background: rgba(26,127,75,0.1);  color: var(--success); }
.badge-danger  { background: rgba(185,28,28,0.1);  color: var(--danger); }
.badge-warning { background: rgba(180,83,9,0.1);   color: var(--warning); }
.badge-info    { background: rgba(30,95,163,0.1);  color: var(--info); }
.badge-gold    { background: rgba(200,168,75,0.15); color: #92740c; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; margin-bottom: 6px;
    font-size: 0.8rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.9rem; color: var(--text-primary);
    background: var(--bg-white); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.form-control::placeholder { color: var(--text-muted); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; font-weight: 500; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 36px 0; margin-bottom: 32px;
    border-bottom: 3px solid var(--accent);
}
.page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; }
.page-header p  { opacity: 0.8; font-size: 0.9rem; }

/* ===== STATUS TRACKER ===== */
.status-track { display: flex; align-items: center; gap: 0; margin: 24px 0; }
.st-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.st-step:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.st-dot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--text-muted); z-index: 1; position: relative; }
.st-dot.done   { background: var(--success); border-color: var(--success); color: white; }
.st-dot.active { background: var(--primary); border-color: var(--primary); color: white; }
.st-step span  { font-size: 0.72rem; font-weight: 700; margin-top: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.st-step.done span   { color: var(--success); }
.st-step.active span { color: var(--primary); }

/* ===== SIDEBAR MENU (PUBLIC) ===== */
.layout-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
    transition: var(--transition); border: 1px solid transparent;
}
.sidebar-nav-item:hover { background: var(--bg); color: var(--primary); border-color: var(--border); }
.sidebar-nav-item.active { background: var(--primary); color: white; border-color: var(--primary); }
.sidebar-nav-item i { width: 18px; text-align: center; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; display: block; }
.empty-state p { font-size: 0.95rem; }

/* ===== FOOTER PUBLIC ===== */
.public-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--accent);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-brand h3 { color: white; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.footer-brand p  { font-size: 0.82rem; line-height: 1.7; }
.footer-links h4 { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 0.83rem; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.78rem; }

/* ===== ADMIN LAYOUT ===== */
.admin-body { display: flex; min-height: 100vh; background: #f0f4f8; }

.admin-sidebar {
    width: 260px; background: var(--sidebar-bg); flex-shrink: 0;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; 
    z-index: 1000; overflow-y: auto;
}
.sidebar-brand {
    padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 12px;
}
.sidebar-brand-icon { width: 42px; height: 42px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-size: 1.1rem; font-weight: 900; flex-shrink: 0; }
.sidebar-brand-text { font-size: 0.9rem; font-weight: 800; color: white; line-height: 1.25; }
.sidebar-brand-sub  { font-size: 0.65rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.5px; }

.sidebar-section { padding: 10px 16px 4px; font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 10px; }
.admin-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px; font-size: 0.875rem; font-weight: 600;
    color: rgba(255,255,255,0.6); transition: var(--transition);
    border-left: 3px solid transparent; margin: 2px 0;
}
.admin-nav-item i { width: 20px; text-align: center; font-size: 1rem; }
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.admin-nav-item.active { background: rgba(200,168,75,0.12); color: var(--accent); border-left-color: var(--accent); }
.sidebar-user { padding: 20px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: auto; }
.sidebar-user-info { display: flex; align-items: center; gap: 12px; }
.sidebar-avatar { width: 38px; height: 38px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary-dark); font-size: 0.95rem; flex-shrink: 0; }
.sidebar-user-name { font-size: 0.875rem; font-weight: 700; color: white; }
.sidebar-user-role { font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.sidebar-logout { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px; border-radius: var(--radius-sm); background: rgba(185,28,28,0.15); color: #fca5a5; font-size: 0.82rem; font-weight: 700; transition: var(--transition); }
.sidebar-logout:hover { background: var(--danger); color: white; }

.admin-main { 
    flex: 1; 
    min-width: 0; 
    display: flex; 
    flex-direction: column; 
    margin-left: 260px; /* Offset for fixed sidebar on desktop */
}
.admin-topbar {
    background: var(--bg-white); border-bottom: 1px solid var(--border);
    padding: 0 32px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
.topbar-left h2 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.topbar-left p  { font-size: 0.75rem; color: var(--text-muted); }
.topbar-right   { display: flex; align-items: center; gap: 12px; }
.admin-content  { padding: 28px 32px; flex: 1; }

/* ===== ACTION LINKS ===== */
.action-link { font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; transition: var(--transition); }
.action-success { background: rgba(26,127,75,0.1); color: var(--success); }
.action-success:hover { background: var(--success); color: white; }
.action-danger  { background: rgba(185,28,28,0.1); color: var(--danger); }
.action-danger:hover  { background: var(--danger); color: white; }
.action-info    { background: rgba(30,95,163,0.1); color: var(--info); }
.action-info:hover    { background: var(--info); color: white; }
.action-warning { background: rgba(180,83,9,0.1); color: var(--warning); }
.action-warning:hover { background: var(--warning); color: white; }

/* ===== CHART WRAP ===== */
.chart-wrap { padding: 22px; position: relative; min-height: 200px; }

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; padding-bottom: 12px;
    border-bottom: 2px solid var(--border); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.section-title i { color: var(--primary); }

/* ===== FILTER TABS (RT) ===== */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tab {
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.82rem;
    font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border);
    background: white; transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-tab .count { background: rgba(255,255,255,0.25); padding: 1px 7px; border-radius: 99px; font-size: 0.7rem; }
.filter-tab.active .count { background: rgba(255,255,255,0.2); }
.filter-tab:not(.active) .count { background: rgba(26,58,92,0.08); color: var(--primary); }

/* ===== MOBILE & RESPONSIVE REFINEMENTS ===== */
.mobile-menu-btn { display: none; } /* Pastikan tersembunyi di desktop */

.mobile-menu-overlay {
    display: none !important; /* Paksa hilang di desktop */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 35, 64, 0.4); backdrop-filter: blur(8px);
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu-content {
    position: absolute; top: 0; right: -300px; width: 300px; height: 100%;
    background: white; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 25px;
    display: flex; flex-direction: column;
}
.mobile-menu-overlay.active .mobile-menu-content { right: 0; }

.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu-close { background: var(--bg); border: none; width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; color: var(--primary); cursor: pointer; }

.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    border-radius: 12px; font-weight: 700; color: var(--text-secondary);
    font-size: 1rem; transition: var(--transition);
}
.mobile-nav a:hover { background: var(--bg); color: var(--primary); }
.mobile-nav a.active { background: var(--primary); color: white; }

@media (max-width: 1024px) {
    .admin-sidebar { width: 220px; }
    .header-inner { padding: 0 16px; }
}

@media (max-width: 768px) {
    .topbar-resmi span:last-child { display: none; } /* Sembunyikan jam di mobile */
    .main-nav, .hide-mobile { display: none !important; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; width: 40px; height: 40px; }
    
    .logo-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 8px; }
    .logo-text-main { font-size: 0.85rem; letter-spacing: -0.2px; }
    .logo-text-sub { display: none; }
    .header-inner { padding: 0 12px; height: 60px; }
    .logo-wrap { gap: 8px; }

    .mobile-menu-overlay { display: block !important; } /* Munculkan hanya di mobile */

    .layout-sidebar { grid-template-columns: 1fr; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; gap: 15px; }
    
    .page-header { padding: 30px 0; text-align: center; }
    .page-header h1 { font-size: 1.4rem; }
    .page-wrap { padding: 20px 16px; }
    
    /* Perbaikan Tabel Mobile */
    .table-wrap { 
        margin: 0 -16px; padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }
    
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 15px; flex-direction: column; text-align: center; }
    .stat-icon { margin: 0 auto; }

    /* Admin Sidebar Mobile Toggle */
    .admin-sidebar {
        position: fixed; left: -260px; top: 0; bottom: 0; z-index: 1001;
        transition: all 0.3s ease; box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    .admin-sidebar.active { left: 0; }
    #adminSidebarToggle { display: flex !important; }

    .admin-main { margin-left: 0 !important; } /* No offset on mobile */
    .admin-topbar { 
        padding: 10px 16px; 
        height: auto; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        gap: 10px;
    }
    .topbar-left { flex: 1; display: flex; align-items: center; gap: 12px; }
    .topbar-left h2 { font-size: 0.9rem; margin-bottom: 0; line-height: 1.2; }
    .topbar-left p { font-size: 0.65rem; display: none; } /* Sembunyikan tanggal di topbar sempit */
    
    .topbar-right { width: auto; margin-top: 0; }
    .topbar-right div { padding: 4px 10px !important; font-size: 0.7rem !important; }

    .admin-content { padding: 12px; }
    .stat-grid { 
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
        margin-bottom: 20px;
    }
    .stat-card { 
        padding: 12px 8px !important; 
        text-align: center; 
        border-left-width: 0; 
        border-top: 3px solid var(--primary); 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important;
        min-height: 110px;
    }
    .stat-icon { 
        width: 32px !important; 
        height: 32px !important; 
        font-size: 0.9rem !important; 
        margin: 0 auto 6px !important; 
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .stat-label { font-size: 0.55rem !important; letter-spacing: 0.2px; text-transform: uppercase; opacity: 0.8; }
    .stat-value { font-size: 0.9rem !important; margin: 2px 0 !important; font-weight: 800; }
    .stat-sub { font-size: 0.5rem !important; opacity: 0.7; }
    
    .card-body { padding: 20px !important; } 
    .form-group { margin-bottom: 15px; }
    .form-control { padding: 10px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .topbar-resmi { display: none; } /* Sembunyikan topbar di layar sangat kecil */
    .btn { width: 100%; } /* Tombol jadi penuh di mobile */
    .btn-sm { width: auto; }
}
