/* style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #36344d;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; 
}

button {
    margin-top: 20px;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.message {
    padding: 10px;
    background-color: #e6ffed;
    border: 1px solid #b7e9c7;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
}

/* Admin Dashboard Styles */
.balance-box {
    background-color: #eaf2ff;
    border: 1px solid #b3d1ff;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-form select {
    padding: 8px;
}

.reset-btn {
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}
.reset-btn:hover{
    background-color: #5a6268;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Color code rows based on type */
tr.receipt td {
    background-color: #e6ffed;
}

tr.expense td {
    background-color: #ffe6e6;
}

.admin-link {
    text-align: center;
    margin-top: 25px;
}

/* --- Styles for Radio Buttons --- */
.radio-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.radio-group label {
    margin: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    transform: scale(1.2);
}

/* --- Styles for Side-by-Side Form Fields --- */
.form-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-top: 0;
}

/* --- Styles for specific field widths in a row --- */
.form-group-small {
    flex: 0 0 170px; /* Gives the date field a fixed width */
}

.form-group-large {
    flex: 1; /* Allows the description to take the remaining space */
}

/* --- Responsive Styles for Mobile --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* Stack fields vertically on small screens */
        gap: 0; /* Remove the gap since they are no longer side-by-side */
    }

    .form-group-small {
        flex: 1; /* Allow the date field to take up the full width */
    }
}
/* --- Styles for Table Column Alignment --- */
.amount-column {
    text-align: right;
}