/* --- Import Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* --- CSS Variables (Optional but recommended for maintainability) --- */
:root {
    --primary-color: #8B0000; /* Maroon */
    --primary-hover-color: #A52A2A;
    --nav-text-color: #F5F5DC;
    --nav-hover-text-color: #FFFFFF;
    --body-bg-color: #FFFFFF;
    --body-text-color: #000000;
    --container-bg-color: #FFFFF0; /* Ivory */
    --form-group-bg-color: #FFFFFF;
    --form-border-color: #E0E0E0;
    --input-border-color: #CCCCCC;
    --input-text-color: #333333;
    --focus-shadow-color: rgba(139, 0, 0, 0.15);
    --link-underline-color: #FFF8DC;
    --error-color: #C82333;
    --light-grey: #AAAAAA;
    --medium-grey: #666666;
    --footer-border-color: #DDDDDD;
    --base-font-family: 'Lato', sans-serif;
    --base-line-height: 1.7;
    --base-font-size: 1rem;
    --nav-logo-height: 45px;
    --container-max-width: 1100px;
    --border-radius-base: 6px;
    --border-radius-large: 8px;
    --border-radius-xl: 12px;
}


/* --- General Body and Typography --- */
body {
    font-family: var(--base-font-family);
    margin: 0;
    padding: 0;
    line-height: var(--base-line-height);
    background-color: var(--body-bg-color);
    color: var(--body-text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--nav-hover-text-color); /* Assuming header uses nav bg */
    letter-spacing: 0.5px;
}

p.subtitle {
    text-align: center;
    margin-top: 0;
    color: #f8f9fa; /* Specific light color for subtitle on dark bg */
    margin-bottom: 0;
    font-size: 1.1em;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(139, 0, 0, 0), rgba(139, 0, 0, 0.5), rgba(139, 0, 0, 0));
    margin: 30px 0;
}

/* --- Navigation --- */
nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--primary-color);
    padding: 12px 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative; /* Needed for potential absolute children */
}

.nav-logo {
    height: var(--nav-logo-height);
    width: auto;
    margin-right: 20px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.nav-logo:hover {
     transform: scale(1.05);
}

.nav-center-links {
    flex-grow: 1;
    text-align: center;
}

/* Standard Nav Links */
.nav-center-links a {
    text-decoration: none;
    color: var(--nav-text-color);
    margin: 0 10px;
    font-weight: bold;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-center-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--link-underline-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-center-links a:hover::after,
.nav-center-links a:focus::after {
    width: 100%;
}

.nav-center-links a:hover,
.nav-center-links a:focus {
    color: var(--nav-hover-text-color);
    text-decoration: none;
}

/* Dropdown Navigation */
.nav-center-links .dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.nav-center-links .dropbtn {
    background-color: transparent;
    color: var(--nav-text-color);
    padding: 8px 10px;
    font-size: inherit;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin: 0;
    line-height: inherit;
    transition: color 0.3s ease;
    display: inline-flex; /* Ensure button and arrow are inline */
    align-items: center; /* Vertically align text and arrow */
}

.nav-center-links .dropbtn:hover,
.nav-center-links .dropbtn:focus {
    color: var(--nav-hover-text-color);
    outline: none;
}

.nav-center-links .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    border-radius: 4px;
    top: 100%;
    left: 0;
    margin-top: 2px;
}

.nav-center-links .dropdown-content a {
    color: var(--nav-text-color);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    margin: 0; /* Override standard nav link margin */
    font-weight: normal; /* Override standard nav link weight */
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Remove underline effect from dropdown links */
.nav-center-links .dropdown-content a::after {
    content: none !important;
}

.nav-center-links .dropdown-content a:hover {
    background-color: var(--primary-hover-color);
    color: var(--nav-hover-text-color);
}

/* Show dropdown on hover */
.nav-center-links .dropdown:hover .dropdown-content {
    display: block;
}

/* Keep button visually active */
.nav-center-links .dropdown:hover .dropbtn {
   color: var(--nav-hover-text-color);
}

/* Dropdown Arrow */
.nav-center-links .arrow {
    display: inline-block;
    border: solid var(--nav-text-color);
    border-width: 0 2px 2px 0;
    padding: 3px;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.nav-center-links .arrow.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.nav-center-links .dropbtn:hover .arrow,
.nav-center-links .dropbtn:focus .arrow {
    border-color: var(--nav-hover-text-color);
}

.nav-center-links .dropdown:hover .arrow.down {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    border-color: var(--nav-hover-text-color);
}

/* User Info Section */
.nav-user-info-right {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto; /* Pushes to the right */
    color: var(--nav-text-color);
}

.nav-user-info-right span {
    margin-right: 10px;
    margin-left: 10px;
}

.nav-user-info-right a {
     color: var(--nav-text-color);
     margin-left: 10px;
     text-decoration: none;
     font-weight: bold;
     transition: color 0.3s ease;
}
.nav-user-info-right a:hover,
.nav-user-info-right a:focus {
     color: var(--nav-hover-text-color);
     text-decoration: underline;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        justify-content: center;
        padding: 15px;
    }
    .nav-center-links { order: 2; width: 100%; margin-top: 10px; text-align: center; margin-left: 0; }
    .nav-user-info-right { order: 3; width: 100%; justify-content: center; margin-top: 10px; margin-left: 0; }
    .nav-logo { order: 1; margin: 0 auto 5px auto; display: block; }
}

/* --- Header Section --- */
.header-section {
    background-color: var(--primary-color);
    color: var(--nav-hover-text-color);
    padding: 25px 30px;
    margin: -30px -40px 30px -40px; /* Overlap container */
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}
.header-section h1 {
    color: inherit; /* Inherit from .header-section */
    margin-top: 0;
    margin-bottom: 5px;
    text-align: center;
    font-size: 1.9em;
}
.header-section p.subtitle {
    color: #f8f9fa; /* Keep specific light color */
    margin-bottom: 0;
    text-align: center;
    font-size: 1.1em;
}

/* --- Container --- */
.container {
    max-width: var(--container-max-width);
    margin: 30px auto;
    padding: 30px 40px;
    background-color: var(--container-bg-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Contains margins/padding of children */
}

/* --- Form General --- */
.form-group {
    margin-bottom: 0;
    padding: 25px;
    border: 1px solid var(--form-border-color);
    border-radius: var(--border-radius-large);
    background-color: var(--form-group-bg-color);
    transition: box-shadow 0.3s ease;
    position: relative;
    margin-top: 20px; /* Increased spacing between groups */
}
.form-group:first-of-type {
    margin-top: 0;
}
.form-group:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Hide legend if not used, or style if used */
.form-group legend {
    /* display: none; */
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 5px;
    border-bottom: 2px solid #EADCC1; /* Specific color */
    width: auto;
    display: inline-block;
    padding-right: 15px;
}

/* Form Row & Field Layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: 15px; /* Default bottom margin for rows */
}
.form-row:last-child {
    margin-bottom: 0; /* No margin after last row in group */
}

.form-field {
    flex: 1; /* Default grow */
    min-width: 180px; /* Prevent extreme shrinking */
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    margin-bottom: 15px; /* Default bottom margin for fields */
}
/* No bottom margin for the last field in a row if that's the desired behavior */
/* .form-row > .form-field:last-child { margin-bottom: 0; } */


/* Specific Row Layouts */
.form-row.address-row .form-field-address { flex-grow: 2; flex-basis: 40%; min-width: 250px; }
.form-row.address-row .form-field-state { flex-grow: 1; flex-basis: 30%; }
.form-row.address-row .form-field-pincode { flex-grow: 1; flex-basis: 20%; }

.form-row-three-items .form-field { flex-basis: calc(33.333% - 24px); }
.form-row-four-items .form-field { flex-basis: calc(25% - 24px); }
.form-field-full { flex-basis: calc(100% - 24px) !important; }

/* Form Elements */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--body-text-color);
    font-size: 0.95em;
}

/* Group common input/select/textarea styles */
input[type=text],
input[type=date],
input[type=number],
input[type=tel],
input[type=file],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border-color);
    border-radius: var(--border-radius-base);
    box-sizing: border-box;
    font-size: var(--base-font-size);
    font-family: inherit;
    background-color: var(--body-bg-color); /* Use body bg for inputs */
    color: var(--input-text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type=file] {
    padding: 8px 10px; /* Override common padding */
    cursor: pointer;
}
textarea {
    resize: vertical;
    min-height: 80px;
}
input[readonly], select:disabled {
    background-color: #f8f8f8; /* Specific disabled color */
    cursor: not-allowed;
    opacity: 0.7;
}

/* Focus styles for interactive elements */
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px var(--focus-shadow-color);
}

/* File Input Button */
input[type=file]::file-selector-button {
    padding: 8px 15px;
    margin-right: 10px;
    border: none;
    background-color: #EAEAEA; /* Light grey */
    color: var(--input-text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
input[type=file]::file-selector-button:hover {
    background-color: #DCDCDC;
}

/* Radio Button Styling */
.radio-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
    color: var(--body-text-color);
    margin-bottom: 5px;
}
.radio-group input[type="radio"] {
   appearance: none; /* Custom appearance */
   width: 18px;
   height: 18px;
   border: 2px solid var(--light-grey);
   border-radius: 50%;
   margin-right: 8px;
   vertical-align: middle;
   cursor: pointer;
   position: relative;
   top: -1px;
   transition: border-color 0.3s ease;
}
.radio-group input[type="radio"]:checked {
    border-color: var(--primary-color);
}
.radio-group input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Required field indicator */
.required::after {
    content: " *";
    color: var(--error-color);
    margin-left: 3px;
    font-weight: normal; /* Ensure indicator isn't bold */
}

/* Helper text */
small {
    color: var(--medium-grey);
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
}

/* --- Responsive Form Adjustments --- */
@media (max-width: 992px) {
     /* Stack 3/4 column layouts to 2 columns */
     .form-row-four-items .form-field,
     .form-row-three-items .form-field {
         flex-basis: calc(50% - 24px);
     }
     /* Address row to 2 columns, address first */
     .form-row.address-row .form-field {
         flex-basis: calc(50% - 24px);
     }
     .form-row.address-row .form-field-address {
         flex-basis: calc(100% - 24px); order: 1;
     }
     .form-row.address-row .form-field-state { order: 2; }
     .form-row.address-row .form-field-pincode { order: 3; }
}

@media (max-width: 768px) {
    /* Adjust container padding */
    .container { padding: 20px 25px; }
    /* Adjust header padding/margin */
    .header-section {
        padding: 20px 25px;
        margin: -20px -25px 25px -25px;
        border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
    }
    /* Adjust form group padding/spacing */
    .form-group {
        padding: 20px;
        margin-top: 15px;
    }
    .form-group:first-of-type { margin-top: 0; }

    /* Stack form rows and fields */
    .form-row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }
    .form-field {
        margin-bottom: 18px;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        min-width: unset;
        flex-basis: 100% !important; /* Override previous basis */
    }
    .form-field:last-child { margin-bottom: 0; }

     /* Stack radio buttons */
     .radio-group label {
         display: flex; /* Ensure label takes full width */
         margin-bottom: 10px;
         margin-right: 0;
     }
     /* Reset address row order */
     .form-row.address-row .form-field { order: 0 !important; }

     /* Allow narrow fields to take full width */
     .form-field-narrow { max-width: 100%; }
}

/* --- Flash Messages --- */
.flash-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    width: 100%;
    box-sizing: border-box;
}
.flash-messages li {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-base);
    font-weight: normal;
    border: 1px solid transparent;
    text-align: center;
    opacity: 0; /* Start hidden for animation */
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Flash message colors */
.flash-messages .success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.flash-messages .error,
.flash-messages .danger { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.flash-messages .warning { background-color: #fff3cd; color: #856404; border-color: #ffeeba; }
.flash-messages .info { background-color: #cce5ff; color: #004085; border-color: #b8daff; }

/* --- Submit Button --- */
button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--nav-hover-text-color); /* White */
    padding: 14px 35px;
    border: none;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    margin: 30px auto 0 auto; /* Center button */
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    display: block;
    width: auto; /* Fit content */
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.2);
}
button[type="submit"]:hover,
button[type="submit"]:focus {
    background-color: var(--primary-hover-color);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.3);
    outline: none;
}
button[type="submit"]:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(139, 0, 0, 0.2);
}

/* --- Footer Section --- */
.footer-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--footer-border-color);
    color: var(--body-text-color);
    font-size: 0.9em;
}

/* --- Utility Classes --- */
.form-field-narrow {
    flex-grow: 0;
    flex-basis: auto;
    max-width: 300px;
    /* width: 250px; */ /* Use width for fixed size */
}

/* Ensure narrow field utility responds well on mobile */
/* Already handled in @media (max-width: 768px) */

/* ==============================
   Dashboard Specific Styles
   Extracted from previous inline styles & enhanced
   ============================== */

body.dashboard-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%) fixed;
    min-height: 100vh;
}

/* Sticky nav enhancement for dashboard only */
body.dashboard-page nav {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
    border-bottom: 1px solid #7a0000;
}

/* Active dashboard link */
.nav-center-links a.active-dashboard,
.nav-center-links .dropdown-content a.active-dashboard {
    color: #b91c1c;
    font-weight: 700;
    position: relative;
}
.nav-center-links a.active-dashboard::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2.5px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #fbbf24 0%, #b91c1c 100%);
    border-radius: 2px;
}
.nav-center-links .dropdown-content a.active-dashboard {
    background: #fbeee6;
    color: #b91c1c;
    font-weight: bold;
}

/* Dashboard container overrides */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 32px 18px 24px 18px;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.08);
}

.dashboard-container .header-section {
    background: transparent; /* Keep original background from container */
    margin: 0 0 32px 0;
    padding: 0;
    color: var(--primary-color);
}
.dashboard-container .header-section h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #8B0000;
    letter-spacing: 1px;
    margin-bottom: 0.3em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.dashboard-container .header-section .subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0;
}
/* Donation Locations heading (non-metric) */
.donation-location-heading {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 12px 0 4px 0;
    letter-spacing: 0.5px;
    color: #334155;
}

/* KPI Cards */
.kpi-card-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-bottom: 38px;
}
.kpi-card {
    background: linear-gradient(120deg, #fbeee6 0%, #f7faff 100%);
    border: none;
    border-radius: 16px;
    padding: 28px 18px 22px 18px;
    text-align: center;
    box-shadow: 0 4px 18px 0 rgba(139,0,0,0.07), 0 1.5px 6px 0 rgba(0,0,0,0.03);
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
}
.kpi-card:hover,
.kpi-card:focus-within {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px 0 rgba(139,0,0,0.13), 0 2px 8px 0 rgba(0,0,0,0.06);
}
.kpi-card:focus {
    outline: 3px solid var(--focus-shadow-color);
}
.kpi-title {
    color: #7c7c7c;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.kpi-value {
    color: #8B0000;
    font-size: 2.3em;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.kpi-subtitle {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}
.kpi-value .unit { font-size: 0.7em; font-weight: 600; margin-left: 3px; color: #222; }
.kpi-icon { font-size: 2.1em; margin-bottom: 12px; color: #e11d48; opacity: 0.82; filter: drop-shadow(0 2px 6px #fbbf24aa); }

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* Chart Containers */
.chart-container {
    background: linear-gradient(120deg, #f7faff 0%, #fbeee6 100%);
    border: none;
    border-radius: 15px;
    padding: 22px 16px 16px 16px;
    box-shadow: 0 2px 12px 0 rgba(139,0,0,0.06), 0 1px 4px 0 rgba(0,0,0,0.03);
    height: 320px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s;
}
.chart-container:hover,
.chart-container:focus-within { box-shadow: 0 6px 24px 0 rgba(139,0,0,0.13), 0 2px 8px 0 rgba(0,0,0,0.06); }
.chart-title { color: #b91c1c; font-weight: 700; margin-bottom: 18px; text-align: center; font-size: 1.05em; letter-spacing: 0.2px; flex-shrink: 0; }
.canvas-wrapper { flex-grow: 1; position: relative; min-height: 0; }
.chart-container canvas { max-width: 100%; }

/* Loading / Error */
#loading-message, #error-message {
    text-align: center;
    padding: 2.2rem 1rem;
    font-size: 1.05rem;
    color: #64748b;
}
#error-message { color: #e11d48; font-weight: bold; }

/* Footer override within dashboard */
body.dashboard-page .footer-section {
    letter-spacing: 0.2px;
    font-size: 0.95em;
    color: #111;
}

/* Responsive Tweaks for Dashboard */
@media (max-width: 900px) {
    .charts-grid { gap: 26px; }
    .chart-container { height: 300px; }
}
@media (max-width: 700px) {
    .dashboard-container { padding: 10px 6px 20px 6px; }
    .dashboard-container .header-section h1 { font-size: 1.6rem; }
    .charts-grid { grid-template-columns: 1fr; gap: 30px; }
    .kpi-card-section { grid-template-columns: 1fr; }
    .chart-container { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .kpi-card, .chart-container { transition: none !important; }
    .kpi-card:hover, .chart-container:hover { transform: none !important; }
}

/* Dashboard Filter Form */
.dashboard-filters {
    margin: 0 0 20px 0;
    padding: 12px 16px 18px 16px;
    background: #ffffffcc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.filter-form { display: flex; flex-direction: column; gap: 10px; }
.filter-label { font-weight: 700; font-size: 0.9rem; color: #4a4a4a; }
.filter-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-controls input[type="date"] {
    max-width: 200px;
    padding: 8px 10px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}
.filter-apply-btn, .filter-reset-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139,0,0,0.2);
    transition: background .25s, transform .15s;
}
.filter-reset-btn { background: #475569; }
.filter-apply-btn:hover, .filter-reset-btn:hover { background: var(--primary-hover-color); }
.filter-reset-btn:hover { background: #334155; }
.filter-apply-btn:active, .filter-reset-btn:active { transform: scale(.97); }
.filter-hint { font-size: 0.75rem; color: #64748b; }
@media (max-width: 600px) {
    .filter-controls { flex-direction: column; align-items: flex-start; }
    .filter-controls input[type="date"] { width: 100%; max-width: none; }
    .filter-apply-btn, .filter-reset-btn { width: 100%; }
}