/* CSS Styles for Hostýnská osma 2025 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 600;
}

.gateway-selector {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.gateway-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.gateway-selector select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.gateway-selector select:hover {
    border-color: #3498db;
}

.gateway-selector select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Runners table styles */
#runners-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in;
}

#runners-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#runners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#runners-table thead {
    background-color: #f8f9fa;
}

#runners-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

#runners-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

#runners-table tbody tr {
    transition: background-color 0.2s ease;
}

#runners-table tbody tr:hover {
    background-color: #f8f9fa;
}

#runners-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

/* Red styling for waiting runners */
.rank-waiting {
    color: #dc3545;
    font-weight: 600;
}

/* New row animation */
.new-row {
    animation: highlightNew 2s ease-out;
}

@keyframes highlightNew {
    0% {
        background-color: #fff3cd;
        transform: translateX(-10px);
        opacity: 0;
    }
    10% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        background-color: inherit;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .gateway-selector,
    #runners-container {
        padding: 20px;
    }
    
    #runners-table {
        font-size: 0.9rem;
    }
    
    #runners-table th,
    #runners-table td {
        padding: 8px;
    }
    
    /* Make table scrollable on small screens */
    #runners-container {
        overflow-x: auto;
    }
}
