/* public/css/style.css - VERSION: PREMIUM ANIMATED & RESPONSIVE FIX */

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

:root {
    /* Identitas Premium: Kuning Emas & Deep Black */
    --primary: #F0C419;
    --primary-glow: rgba(240, 196, 25, 0.4);
    --dark-bg: #0f0f11;
    --dark-surface: #18181b;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Variable Animasi */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    /* Animated Background */
    background-image: radial-gradient(circle at 15% 50%, rgba(240, 196, 25, 0.08), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(67, 56, 202, 0.08), transparent 25%);
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- COMPONENTS --- */

/* 1. Glass Card (Kartu Kaca) */
.glass-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(240, 196, 25, 0.3);
}

/* 2. Tombol Premium */
.btn {
    position: relative;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 1;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(240, 196, 25, 0.05);
}

/* 3. Input Form Mewah */
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-label {
    display: block; margin-bottom: 0.5rem; font-size: 0.85rem; 
    color: var(--text-muted); font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 0 4px rgba(240, 196, 25, 0.1);
}

/* --- LAYOUTS (LANDING PAGE & AUTH) --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%;
    position: fixed; top: 0; width: 100%;
    z-index: 100;
    background: rgba(15, 15, 17, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}
.logo { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -1px; }
.logo span { color: var(--primary); }

.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem 2rem;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; }

/* Features Grid (Landing Page Fix) */
.features-grid {
    display: grid;
    /* Menggunakan minmax 300px agar tidak terlalu kecil di HP */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex; justify-content: center; align-items: center;
    padding: 2rem;
    background-image: radial-gradient(#27272a 1px, transparent 1px);
    background-size: 30px 30px;
}
.auth-box { width: 100%; max-width: 420px; }


/* --- DASHBOARD LAYOUT PREMIUM --- */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styling Premium */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 15, 17, 0.95); /* Deep Black */
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease; /* PENTING: Untuk animasi slide di HP */
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 3rem;
    display: flex; align-items: center; gap: 0.5rem;
}

.nav-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: 0.3s;
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    background: rgba(240, 196, 25, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.nav-item i { font-size: 1.2rem; }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width); /* Default Desktop */
    padding: 2rem;
    width: calc(100% - var(--sidebar-width));
    transition: 0.3s;
}

.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem;
}

/* Balance Card Premium */
.balance-card {
    background: linear-gradient(135deg, #F0C419 0%, #d97706 100%);
    padding: 2.5rem;
    border-radius: 24px;
    color: black;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(240, 196, 25, 0.2);
}
.balance-card h4 { opacity: 0.9; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.balance-card h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; }
.balance-bg-icon {
    position: absolute; right: -20px; bottom: -30px;
    font-size: 12rem; opacity: 0.1; color: black; pointer-events: none;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default 4 Kolom Desktop */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.action-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    border-color: var(--primary-glow);
}
.action-icon {
    font-size: 1.8rem; color: var(--primary);
    margin-bottom: 0.8rem; display: block;
}

/* Table */
.table-container {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.5rem;
    overflow-x: hidden; /* Default hidden */
}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--text-muted); padding: 1rem; border-bottom: 1px solid var(--border-glass); font-size: 0.85rem; }
td { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; }

/* Badge */
.badge { padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge.success { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.badge.pending { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.badge.failed { background: rgba(239, 68, 68, 0.2); color: #EF4444; }


/* --- MOBILE SPECIFIC STYLES (PENAMBAHAN PENTING) --- */

/* 1. Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none; 
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90;
    border-bottom: 1px solid var(--border-glass);
}
.logo-mobile { font-size: 1.2rem; font-weight: 800; color: white; }
.logo-mobile span { color: var(--primary); }
.menu-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0; }

/* 2. Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 95;
    display: none;
    opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

/* 3. Sidebar Close Button */
.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
}
.close-sidebar-btn {
    display: none; /* Desktop: Sembunyi */
    background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}

/* --- MEDIA QUERIES (TABLET & MOBILE) --- */
@media (max-width: 768px) {
    /* Main Content Full Width */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
        padding-top: 5.5rem; /* Space for mobile header */
    }

    /* Mobile Header Visible */
    .mobile-header { display: flex; }

    /* Sidebar Mobile Logic */
    .sidebar {
        transform: translateX(-100%); /* Sembunyi default */
        width: 280px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .sidebar.active {
        transform: translateX(0); /* Muncul saat class active */
    }
    .close-sidebar-btn { display: block; }

    /* Landing Page Fixes */
    .hero h1 { font-size: 2.5rem; margin-top: 2rem; }
    .features-grid { padding: 2rem 5%; grid-template-columns: 1fr; } /* 1 Kolom di HP */

    /* Dashboard Adjustments */
    .balance-card { padding: 1.5rem; }
    .balance-card h1 { font-size: 2.2rem; }
    .top-bar {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
    }
    .user-profile { align-self: flex-end; }

    /* Quick Actions: 2 Kolom */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr); /* 2 Kolom Rapi */
        gap: 1rem;
    }

    /* Table Scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table { min-width: 600px; }

    /* Modal Adjust */
    .modal-box { padding: 1.5rem; width: 95%; }
}

/* --- MODAL POPUP --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    background: #18181b; border: 1px solid var(--border-glass);
    padding: 2.5rem; border-radius: 24px; width: 100%; max-width: 420px;
    text-align: center; transform: scale(0.9); transition: 0.3s;
}
.modal-overlay.active .modal-box { transform: scale(1); }

/* Loading Spinner */
.loading-spinner {
    width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--primary); border-radius: 50%;
    animation: spin 1s infinite linear; margin: 0 auto 1.5rem auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- PREMIUM MODAL POPUP (Success & Error) --- */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Latar belakang gelap */
    backdrop-filter: blur(8px);      /* Efek blur kaca */
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Kotak Modal Utama */
.modal-box {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efek membal (bouncy) */
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

/* Lingkaran Ikon (PENTING UNTUK WARNA) */
.modal-icon-wrapper {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    position: relative;
    /* Animasi denyut */
    animation: pulse 2s infinite; 
}

/* Warna SUKSES (Hijau) */
.modal-success .modal-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 2px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Warna ERROR (Merah) */
.modal-error .modal-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 2px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Tombol Tutup di Modal */
.modal-btn {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.modal-success .modal-btn { 
    background: #10B981; color: #000; 
}
.modal-success .modal-btn:hover { 
    background: #059669; transform: translateY(-2px);
}

.modal-error .modal-btn { 
    background: #EF4444; color: white; 
}
.modal-error .modal-btn:hover { 
    background: #DC2626; transform: translateY(-2px);
}

/* Animasi Denyut */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- FIX WARNA LINK LOGIN/REGISTER --- */

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted); /* Warna teks biasa (abu-abu) */
}

/* Target khusus untuk link (<a>) di dalam footer */
.auth-footer a {
    color: var(--primary) !important; /* Memaksa warna Kuning Emas */
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #fff !important; /* Putih saat di-hover */
    text-shadow: 0 0 10px var(--primary-glow);
    text-decoration: underline;
}

/* API Key Wrapper responsive */
.api-key-wrapper {
    flex-wrap: nowrap;
}

@media (max-width: 480px) {
    .api-key-wrapper {
        flex-wrap: wrap;
    }
    .api-key-wrapper input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .api-key-wrapper button {
        flex: 1;
    }
}

/* --- TAMBAHAN UNTUK MODAL KONFIRMASI (WARNING) --- */

.modal-warning .modal-icon-wrapper {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 2px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.modal-warning .modal-btn {
    background: #F59E0B; 
    color: black;
}
.modal-warning .modal-btn:hover {
    background: #d97706; 
    transform: translateY(-2px);
}

/* Tombol Batal di Modal Konfirmasi */
.modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.modal-btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* --- STATS CARDS (RINGKASAN) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 16px;
    transition: 0.3s;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.stats-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.5rem;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* --- TAB MENU (PEMISAH TRANSAKSI) --- */
.history-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem; /* Space untuk scrollbar jika di HP */
}

.tab-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
    font-weight: 700;
}

/* =========================================
   SISTEM NOTIFIKASI & FIX HEADER DASHBOARD
   ========================================= */

/* --- 1. PERBAIKAN LAYOUT HEADER (TOP BAR) --- */
/* Memaksa header agar selalu satu baris (Kiri-Kanan) dan tidak menumpuk */
.top-bar {
    display: flex !important;
    flex-direction: row !important; /* Paksa baris, bukan kolom */
    justify-content: space-between !important; /* Teks di Kiri, Ikon di Kanan */
    align-items: center !important;
    text-align: left !important;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

/* Memastikan konten di dalam header ukurannya pas */
.top-bar > div {
    flex: 0 1 auto !important;
    width: auto !important;
}

/* Khusus HP Kecil: Kecilkan font agar muat */
@media (max-width: 380px) {
    .top-bar h2 { font-size: 1rem !important; }
    .top-bar p { font-size: 0.7rem !important; }
}

/* --- 2. TOMBOL LONCENG & WRAPPER --- */
/* Wrapper wajib relative agar dropdown menempel padanya */
.notif-wrapper {
    position: relative !important; 
    display: flex;
    align-items: center;
}

.icon-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }

.notif-badge {
    position: absolute;
    top: 5px; right: 5px;
    background: #EF4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #000; /* Border hitam agar kontras */
}

/* --- 3. DROPDOWN NOTIFIKASI --- */
.notif-dropdown {
    position: absolute !important;
    top: 50px !important;    /* Jarak dari tombol lonceng */
    right: 0 !important;     /* Rata kanan dengan wrapper */
    left: auto !important;   /* Jangan biarkan lari ke kiri */
    width: 280px !important; /* Lebar dropdown pas untuk mobile */
    
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    
    display: none; /* Hidden by default */
    overflow: hidden;
}

/* Animasi Muncul (Slide Down) */
.notif-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 4. ISI KONTEN NOTIFIKASI --- */
.notif-header {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Custom Scrollbar untuk list notif */
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* Item Notifikasi */
.notif-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
    cursor: default;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { 
    background: rgba(245, 158, 11, 0.05); 
    border-left: 3px solid var(--primary); 
}

.notif-title { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: white; 
    margin-bottom: 2px; 
}
.notif-desc { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    line-height: 1.3; 
}
.notif-time { 
    font-size: 0.65rem; 
    color: var(--text-muted); 
    margin-top: 4px; 
    text-align: right; 
    display: block; 
    opacity: 0.7; 
}

/* =========================================
   OPTIMASI GRID AKSES CEPAT (MOBILE)
   ========================================= */

@media (max-width: 480px) {
    /* 1. Perkecil Jarak Antar Tombol */
    .dashboard-container .stats-grid { 
        /* Target grid yang membungkus tombol akses cepat */
        gap: 0.75rem !important; 
    }

    /* 2. Perkecil Kartu Tombol */
    .action-card {
        padding: 0.8rem !important; /* Lebih tipis */
        min-height: 80px !important; /* Tinggi minimal dikecilkan */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* 3. Perkecil Ikon */
    .action-card .action-icon {
        font-size: 1.4rem !important; /* Ukuran ikon dikurangi */
        margin-bottom: 0.3rem !important; /* Jarak ikon ke teks didekatkan */
    }

    /* 4. Perkecil Teks */
    .action-card span {
        font-size: 0.75rem !important; /* Huruf lebih kecil */
        line-height: 1.2;
    }
}

/* --- STYLING MODAL STRUK (RECEIPT) --- */
.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-muted);
}
