:root {
    --bg-color: #f0f0f0;
    --primary-color: #f4d738; /* Yellow */
    --secondary-color: #fd49a0; /* Pink */
    --accent-color: #2bd1ff; /* Blue */
    --success-color: #3ffa11; /* Green */
    --text-color: #000000;
    --border-thickness: 3px;
    --shadow-offset: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1, h2, h3 {
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 900;
}

/* Neo-Brutalism Cards */
.card {
    background: white;
    border: var(--border-thickness) solid var(--text-color);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--text-color);
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0px var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    border: var(--border-thickness) solid var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-color);
}

.btn-secondary { background: var(--secondary-color); }
.btn-accent { background: var(--accent-color); }
.btn-success { background: var(--success-color); }

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: var(--border-thickness) solid var(--text-color);
    background: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

input:focus {
    outline: none;
    background: #fffdf0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: var(--border-thickness) solid var(--text-color);
    padding: 12px;
    text-align: left;
}

th {
    background: var(--accent-color);
    text-transform: uppercase;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    padding: 15px;
    border: var(--border-thickness) solid var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
    text-align: center;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

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

@keyframes slideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
}

.income { color: #15803d; }
.expense { color: #b91c1c; }

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: #fff;
    border: var(--border-thickness) solid var(--text-color);
    box-shadow: 10px 10px 0px var(--text-color);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    animation: modalBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalBounce {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 10px; right: 10px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.5rem;
}

/* Alert Toast */
.alert-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color); /* Menggunakan warna kuning mencolok */
    border: var(--border-thickness) solid var(--text-color);
    box-shadow: 8px 8px 0px var(--text-color);
    padding: 15px 30px;
    z-index: 9999;
    font-weight: 900;
    text-transform: uppercase;
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Actions */
.action-btn {
    display: inline-block;
    padding: 4px 8px;
    border: 2px solid #000;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: bold;
    color: #000;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.1s;
}

.action-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000;
}

/* Micro-animations */
.card, .btn, .stat-item {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

