/* Globálne štýly pre races.php (Kopírované z index.css) */
body {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    font-size: 16px;
}

main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
    position: relative;
    z-index: 1;
}

h2.section-title {
    font-size: 2.5em;
    color: #e10600;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.3);
    padding-bottom: 15px;
}

/* --- Štýly pre tabuľku kalendára pretekov (Prispôsobené z index.css) --- */
.race-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    margin-bottom: 50px;
    background-color: #1e1e1e;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow: hidden;
    font-size: 16px;
}

.race-list thead th {
    background-color: #121212;
    color: #aaaaaa;
    padding: 20px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 2px;
    border-bottom: 3px solid #e10600;
}

.race-list tbody tr {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.race-list tbody tr:hover {
    background-color: #2a2a2a;
    transform: scale(1.01); /* Jemnejší efekt, aby to nebolo príliš výrazné */
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.3);
    z-index: 10;
    position: relative;
}

.race-list tbody tr:nth-child(even) {
    background-color: #252525;
}

.race-list td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #333;
}

.race-list tr:last-child td {
    border-bottom: none;
}

/* Štýly pre názvy pretekov a okruhov */
.race-name a,
.race-list td {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.race-name a:hover {
    color: #e10600;
}

/* Štýly pre najrýchlejšie kolo */
.race-fastest-lap i {
    color: #00bcd4;
    font-size: 1.1em;
    margin-right: 8px;
}

.race-fastest-lap span {
    font-family: monospace;
    font-size: 1.1em;
}

/* Štýly pre tlačidlá */
.btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #e10600;
    color: #fff;
    border: 1px solid #e10600;
}

.btn-primary:hover {
    background-color: transparent;
    color: #e10600;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* --- Správy (Kopírované z index.css) --- */
.info-message, .error-message, .success-message {
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    font-weight: bold;
    max-width: 600px;
}

.info-message {
    background-color: #2a2a2a;
    color: #00bcd4;
    border: 1px solid #00bcd4;
}

.error-message {
    background-color: #4a1c1c;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

.success-message {
    background-color: #1c4a1c;
    color: #4dff4d;
    border: 1px solid #4dff4d;
}