/* style.css */

/* Import Font dari Google */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Variabel Warna Sesuai Brand */
:root {
    --primary-red: #E60023;
    --primary-yellow: #FFC300;
    --dark-grey: #2c2c2c;
    --light-grey: #f4f4f9;
    --border-color: #e0e0e0;
}

/* Reset dan Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary-red);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.header img {
    max-height: 80px;
    width: auto;
}
.header p {
    margin: 5px 0 0;
    font-size: 1.2em;
    color: var(--primary-yellow);
    font-weight: 500;
}

/* Panel Kontrol Filter */
.controls-panel {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filters-form .form-group {
    flex: 1 1 180px; /* Disesuaikan agar muat lebih banyak filter */
}

.filters-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.filters-form select,
.filters-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

.filters-form button {
    background-color: var(--primary-yellow);
    color: var(--dark-grey);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}
.filters-form button:hover {
    background-color: #e6b000;
}

/* Navigasi Peringkat (Top 5, 10, All) */
.view-options {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.view-options span {
    align-self: center;
    margin-right: 10px;
    font-weight: 500;
}
.view-options a {
    text-decoration: none;
    color: var(--dark-grey);
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}
.view-options a.active,
.view-options a:hover {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Info Hasil */
.results-info {
    background-color: #e7f4ff;
    color: #005a9e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Tabel Hasil */
.results-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap; /* Mencegah teks turun baris */
}

thead th {
    background-color: var(--dark-grey);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:hover {
    background-color: #f0f0f0;
}

.pos, .bib { font-weight: 700; }
.time { color: var(--primary-red); font-weight: 500; }
.trophy { color: var(--primary-yellow); }

.no-results {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #888;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #888;
}

/* Responsif untuk Mobile */
@media (max-width: 992px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filters-form button {
        width: 100%;
    }
    .header h1 {
        font-size: 2em;
    }
}
/* Tambahkan kode ini di akhir file style.css Anda */

.status-dnf {
    color: #888;
    font-style: italic;
    font-weight: 500;
}