@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Desain Card Rekapitulasi */
.summary-card {
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.summary-card .icon-bg {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 100px;
    opacity: 0.05; /* Ikon transparan sebagai background */
    z-index: 0;
}

.summary-card .card-content {
    position: relative;
    z-index: 1;
}

/* Warna khusus tiap jenis card */
.income-card { border-left: 5px solid #10b981; }
.income-card h3 { color: #10b981; }

.expense-card { border-left: 5px solid #ef4444; }
.expense-card h3 { color: #ef4444; }

.balance-card { border-left: 5px solid #4f46e5; }
.balance-card h3 { color: #4f46e5; }

/* Card Form Setup */
.custom-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    padding: 2.5rem;
    border: none;
}

/* Radio Button Design */
.radio-group input[type="radio"] {
    display: none; /* Sembunyikan bulatan radio asli */
}

.radio-group label {
    display: block;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #6c757d;
}

.radio-group label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.radio-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* Interaksi saat diklik (Checked) */
#radio-pemasukan:checked + label {
    border-color: #10b981; /* Hijau modern */
    background-color: #ecfdf5;
    color: #10b981;
}

#radio-pengeluaran:checked + label {
    border-color: #ef4444; /* Merah modern */
    background-color: #fef2f2;
    color: #ef4444;
}

/* Input Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.btn-primary-custom {
    background-color: #4f46e5;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary-custom:hover {
    background-color: #4338ca;
}

/* 1. Custom Dropdown Estetik */
.form-select-custom {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    background-color: #fcfcfc;
    /* Panah custom berwarna indigo */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    appearance: none; /* Menghilangkan panah bawaan web */
}

.form-select-custom:focus {
    border-color: #4f46e5;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background-color: #fff;
}

.form-select-custom:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* 2. Header Tabel Kontras (Dark Mode Elegant) */
.table-custom-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* 2. Header Tabel Kontras (Dark Mode Elegant) */
.table-custom-header th {
    background: #2261c6 !important; 
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: none;
    
    /* Tambahkan dua baris ini untuk membuat teks ke tengah */
    text-align: center !important; 
    vertical-align: middle !important;
}

/* Tambahan: Agar ujung kiri dan kanan header melengkung rapi (Opsional) */
.table-custom-header th:first-child {
    border-top-left-radius: 10px;
}
.table-custom-header th:last-child {
    border-top-right-radius: 10px;
}