body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    margin: 20px;
}

#index-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

#index-page > .header,
#index-page > .total-assets,
#index-page > .actions {
    grid-column: 1 / -1;
    text-align: center;
}

.timestamp {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.8em;
    color: #777;
}

.total-assets h1 {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 5px;
}

.account-balances span {
    display: block;
    color: #555;
    margin-bottom: 5px;
}

.actions button {
    padding: 10px 20px;
    margin: 0 10px 15px 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 1em;
}

.actions button:hover {
    background-color: #0056b3;
}

.assets-pie-chart, .liquid-assets-pie-chart {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.assets-pie-chart h2, .liquid-assets-pie-chart h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.pie-chart {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: lightblue; /* Placeholder */
    margin: 0 auto 10px;
    line-height: 100px;
    font-size: 0.8em;
    color: #fff;
    position: relative;
}

.pie-chart::before {
    content: "Pie";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #555;
}

/* Styles for other pages */
#transaksi-page, #history-page, #history-all-page {
    text-align: center;
}

.form-container {
    background-color: #5bc0de;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: inline-block;
    text-align: left;
}

.form-group {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    color: white;
    text-align: left;
}

.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="text"],
.form-group select {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

#transaksi-page .timestamp {
    position: static;
    margin-top: 20px;
}

#history-page .period {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.month-selector {
    margin-bottom: 20px;
}

.month-selector label {
    margin-right: 10px;
    font-weight: bold;
}

.month-selector select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.month-selector button {
    padding: 10px 15px;
    background-color: #5bc0de;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.month-selector button:hover {
    background-color: #46a5c6;
}

.hidden {
    display: none !important;
}