body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
}
@media (max-width: 768px) {
    .content {
        padding: 0;
    }

    .main-container {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .chart-card,
    .chart {
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: none;
    }

    .total-aset-card {
        padding: 15px;
        margin: 10px;
        border-radius: 10px;
    }

    #chart-container {
        width: 100% !important;
        height: 300px !important;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        display: block;
    }

    .kategori-container {
        gap: 15px;
        padding: 0 10px;
    }

    .btn-tambah {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto 20px auto;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

.wrapper {
    display: flex;
}

.content {
    flex: 1;
    padding: 20px;
}
.main-container {
    display: flex;
    align-items: flex-start;
}

.chart-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  height: fit-content; /* ✅ ini penting */
}

.other-content {
  flex-grow: 1;
}

.chart {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.kategori-container {
    display: grid;
    flex: 1;
}

.kategori-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kategori-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #444;
}

.subtotal {
    margin-top: 10px;
    font-weight: bold;
    text-align: right;
    color: #000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
    border-radius: 10px;
    position: relative;
}
.close {
    position: absolute;
    right: 10px; top: 10px;
    cursor: pointer;
    font-size: 18px;
}
.modal-content form input,
.modal-content form select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
}
.modal-content form button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}
.btn-tambah {
    background: #3498db;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    cursor: pointer;
}

.alert {
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.total-aset-card {
    background: #ffffff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.total-aset-card h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.total-aset-card p {
    margin: 5px 0 0;
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.topbar {
    display: none;
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    align-items: center;
}
.topbar .hamburger {
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}