/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

nav {
    background-color: #31231b;
    color: #fff;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: lightgray;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 0;
    display: inline-block;
    height: 16px; /* Add this line to fix the height */
    line-height: 16px; /* Add this line to vertically center text */
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: white;
    transform: scale(1.1); /* Change font-size to transform */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    text-decoration: none; /* Ensure underline does not appear */
}


h2 {
    color: #31231b;
}

.expense-form, .date-filter-form {
    max-width: 500px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.expense-form form, .date-filter-form form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-row {
    width: 48%;
    margin-bottom: 10px;
}

.form-row input[type="text"], .form-row input[type="number"], .form-row input[type="date"], .form-row textarea, .form-row select, .form-row input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    box-sizing: border-box;
}

.expense-form input[type="submit"], .date-filter-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #31231b;
    color: #fff;
    border: none;
    cursor: pointer;
}

.expense-form input[type="submit"]:hover, .date-filter-form input[type="submit"]:hover {
    background-color: #51433b;
}

.expense-table-container {
    width: 90%;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.expense-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.expense-table th, .expense-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.expense-table th {
    background-color: #31231b;
    color: #fff;
    font-size: 12px;
}

.expense-table th:nth-child(5), .expense-table td:nth-child(5) {
    text-align: center;
}

.expense-table a {
    color: #31231b;
    text-decoration: none;
}

.expense-table a:hover {
    text-decoration: underline;
}

.expense-table tfoot td {
    font-weight: bold;
}

.expense-table-container table td:first-child {
    text-align: center;
}

.expense-table tbody tr:last-child td {
    border-bottom: none;
}
