* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1170px;
    margin: 40px auto;
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

header p {
    color: #777;
}

.filter-section {
    display: flex;
    align-items: end;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filter-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

button {
    padding: 12px 18px;
    border: none;
    background: #222;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #444;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.stat-card i {
    font-size: 22px;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 15px;
    color: #777;
}

.stat-card p {
    font-size: 15px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.map-section,
.history-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}

#recordsCount {
    color: #777;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    min-width: 650px;
}

th,
td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        width: 94%;
    }

    #map {
        height: 350px;
    }
}

@media (max-width: 450px) {
    .stats {
        grid-template-columns: 1fr;
    }
}