/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    color: #333;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Filters Section */
.filters {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px; /* Wider filters section */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center filters horizontally */
}

.filters form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between form elements */
}

.filters label {
    font-weight: 600;
    color: #34495e;
    font-size: 13px;
}

.filters select, .filters input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background-color: #f9f9f9;
    color: #333;
    width: 100%; /* Full width for better alignment */
}

.filters .buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: center; /* Center buttons horizontally */
    margin-top: 10px; /* Add some space above the buttons */
}

.filters button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filters button[type="submit"] {
    background-color: #3498db;
    color: white;
}

.filters button[type="submit"]:hover {
    background-color: #2980b9;
}

#clearFilters {
    background-color: #e74c3c; /* Red color for the Clear All button */
    color: white;
}

#clearFilters:hover {
    background-color: #c0392b; /* Darker red on hover */
}

/* Specific Date Container */
#specific_date_container {
    margin-top: 8px;
    width: 100%; /* Full width for better alignment */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px; /* Slightly larger font size */
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px; /* Increased padding for better spacing */
    text-align: left;
}

table th {
    background-color: #2c3e50; /* Dark background for headers */
    color: #f0f0f0; /* Light gray font color */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

table th a {
    color: #f0f0f0; /* Light gray font color for links */
    text-decoration: none; /* Remove underline */
}

table th a:visited {
    color: #f0f0f0; /* Light gray font color for visited links */
}

table th:hover {
    background-color: #34495e; /* Slightly lighter on hover */
}

table td {
    background-color: #ffffff; /* White background for rows */
    color: #333;
}

table tr:nth-child(even) td {
    background-color: #f9f9f9; /* Light gray for alternating rows */
}

table tr:hover td {
    background-color: #f1f1f1; /* Light gray on hover */
}

/* Chart Container */
.chart-container {
    width: 100%;
    max-width: 1000px; /* Increased max-width for a larger graph */
    height: 250px; /* Reduced height by 50% */
    margin: 20px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; /* Required for footer positioning */
}
