body {
    font-family: Arial, sans-serif;
    background-color: #f5efe6;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

/* Heading */
.main-heading {
    color: #5c4033;
    margin-bottom: 10px;
}

/* Container */
.container {
    background-color: #fffaf3;
    padding: 25px;
    border-radius: 12px;
    width: 820px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Balance */
.balance {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #5c4033;
    margin-bottom: 20px;
}

/* Form row */
.form-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Each field */
.field {
    display: flex;
    flex-direction: column;
}

/* Field sizes */
.field:nth-child(1) {
    flex: 2;
}

.field:nth-child(2) {
    flex: 1;
}

.field:nth-child(3),
.field:nth-child(4) {
    flex: 1.5;
}

/* Inputs */
.field input,
.field select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d2b48c;
    font-size: 14px;
}

/* Button */
#addButton {
    background-color: #8b5e3c;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
}

#addButton:hover {
    background-color: #6f472f;
}

/* Error messages */
.error-msg {
    color: red;
    font-size: 12px;
    margin-top: 3px;
    min-height: 14px;
}

/* Result container */
.result-container {
    margin-top: 20px;
    background-color: #fffaf3;
    padding: 25px;
    border-radius: 12px;
    width: 820px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* List */
.list-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List items */
.list-container li {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #e0d5c8;
}

/* Colors */
.income {
    color: green;
}

.expense {
    color: red;
}

#table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#table th {
    background-color: #d2b48c;
    color: #4b2e2e;
    padding: 10px;
    text-align: center;
}

#table td {
    padding: 10px;
    text-align: center;
}

#table tr:nth-child(even) {
    background-color: #f3e8dc;
}

#table tr:hover {
    background-color: #e6d5c3;
}

/* Delete button */
.delete-btn {
    width: 40%;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.edit-btn {
    width: 40%;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.edit-btn:hover {
    background-color: #c0392b;
}


