* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #F5EFE6 0%, #E8DCC8 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #4A2E1E;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
}

.info {
    background: #FAF6EF;
    padding: 15px;
    border: 1px solid #D9C9B0;
    border-radius: 2px;
    margin-bottom: 20px;
}

.info p {
    color: #4A2E1E;
    font-size: 1.1em;
}

/* Filters */

.filter-section {
    background: #FAF6EF;
    border: 1px solid #E8DCC8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 200px;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8A7360;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D9C9B0;
    border-radius: 6px;
    background: #fff;
    color: #4A2E1E;
    font-family: inherit;
    font-size: 0.95em;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #B8860B;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.btn-filter,
.btn-reset {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-filter {
    background: #4A2E1E;
    color: #F5EFE6;
}

.btn-filter:hover {
    background: #7A4A28;
}

.btn-reset {
    background: transparent;
    color: #7A4A28;
    border-color: #D9C9B0;
}

.btn-reset:hover {
    background: #EFE6D8;
}

/* Statistics */

.stats-section {
    margin-bottom: 30px;
}

.stats-section h2 {
    color: #4A2E1E;
    font-size: 1.3em;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #FAF6EF;
    border: 1px solid #D9C9B0;
    border-radius: 2px;
    padding: 16px;
}

.stat-card h3 {
    color: #4A2E1E;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #D9C9B0;
}

.stat-card p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    color: #4A2E1E;
    font-size: 0.88em;
    font-weight: 600;
}

.stat-card p strong {
    color: #8A7360;
    font-weight: 500;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, #4A2E1E 0%, #7A4A28 100%);
    color: #F5EFE6;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: #555;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #2E1D12;
    color: #E8DCC8;
    font-size: 0.9em;
    border-top: 1px solid #B8860B;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #FAF6EF;
}

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

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    table {
        font-size: 0.9em;
    }

    th,
    td {
        padding: 10px;
    }
}