        .navbar {
            background-color: #2c3e50;
        }
        .hero-section {
            background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
            color: white;
            padding: 60px 0;
            margin-bottom: 30px;
        }
        .card {
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .gender-tab {
            cursor: pointer;
            padding: 10px 20px;
            font-weight: bold;
            background-color: #f8f9fa;
            border-radius: 5px 5px 0 0;
            border: 1px solid #dee2e6;
            transition: all 0.3s;
        }
        .gender-tab.active {
            background-color: white;
            border-bottom: none;
            color: #3498db;
        }
        .gender-content {
            display: none;
            padding: 20px;
            border: 1px solid #dee2e6;
            border-radius: 0 5px 5px 5px;
            animation: fadeIn 0.5s;
        }
        .gender-content.active {
            display: block;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .stat-card {
            text-align: center;
            padding: 20px;
            border-radius: 10px;
            background-color: white;
            transition: transform 0.3s;
        }
        .stat-card:hover {
            transform: translateY(-5px);
        }
        .stat-icon {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            margin: 10px 0;
        }
        footer {
            background-color: #2c3e50;
            color: white;
            padding: 30px 0;
            margin-top: 50px;
        }
        .login-link {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
        }
        .login-link:hover {
            color: white;
        }
        .navbar-brand {
            display: flex;
            align-items: center;
        }
        .navbar-logo {
            height: 60px;
            margin-right: 15px;
            filter: brightness(0) invert(1);
        }
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
        }
        .loading-message, .error-message {
            text-align: center;
            padding: 2rem;
            margin: 1rem 0;
            border-radius: 0.5rem;
        }
        .loading-message {
            background-color: #f8f9fa;
        }
        .error-message {
            background-color: #f8d7da;
            color: #842029;
        }
        .badge-club {
            font-size: 0.9rem;
            padding: 5px 10px;
        }
        .tiempo-record {
            font-family: 'Courier New', monospace;
            font-weight: bold;
            font-size: 1.1rem;
        }
        .categoria-badge {
            background-color: #e9ecef;
            color: #495057;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.85rem;
        }
        .record-reciente {
            border-left: 4px solid #3498db;
            background-color: #f8f9fa;
            margin-bottom: 10px;
            padding: 10px;
            transition: all 0.3s;
        }
        .record-reciente:hover {
            background-color: #e9ecef;
            border-left-color: #2980b9;
        }
        .puntos-fina {
            background-color: #0d6efd;
            color: #ffffff;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: bold;
            font-size: 0.85rem;
            display: inline-block;
            min-width: fit-content;
            text-align: center;
        }
        .division-selector {
            margin-bottom: 20px;
        }
        .division-btn {
            margin: 0 5px;
        }
        .search-container {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
        }
        .no-data-message {
            text-align: center;
            padding: 30px;
            color: #6c757d;
        }
        /* Animación para nuevos récords */
        @keyframes newRecord {
            0% { background-color: #fff3cd; }
            100% { background-color: transparent; }
        }
        .nuevo-record {
            animation: newRecord 2s ease;
        }

        /* Estilos para radio buttons mejorados */
        .filter-radio-group {
            display: flex;
            gap: 15px;
            align-items: center;
            justify-content: center;
            background-color: #f8f9fa;
            padding: 10px 15px;
            border-radius: 8px;
            border: 1px solid #dee2e6;
        }

        .filter-radio-item {
            display: flex;
            align-items: center;
            margin: 0;
        }

        .filter-radio-item input[type="radio"] {
            margin: 0 8px 0 0;
            transform: scale(1.1);
        }

        .filter-radio-item label {
            margin: 0;
            font-weight: 500;
            color: #495057;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .filter-radio-item input[type="radio"]:checked + label {
            color: #0d6efd;
            font-weight: 600;
        }

        /* Estilo para el buscador de nadadores */
        .nadador-search-container {
            position: relative;
        }

        .nadador-search-input {
            border: 1px solid #ced4da;
            border-radius: 0.375rem;
            padding: 0.5rem 0.75rem;
            width: 100%;
            font-size: 1rem;
            background-color: #fff;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }

        .nadador-search-input:focus {
            outline: none;
            border-color: #86b7fe;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

        .nadador-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 0.375rem;
            margin-top: 2px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 1050;
            display: none;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        }

        .nadador-dropdown.show {
            display: block;
        }

        .nadador-option {
            padding: 0.5rem 0.75rem;
            cursor: pointer;
            border-bottom: 1px solid #f8f9fa;
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.15s ease-in-out;
        }

        .nadador-option:last-child {
            border-bottom: none;
        }

        .nadador-option:hover {
            background-color: #f8f9fa;
        }

        .nadador-option.selected {
            background-color: #e7f1ff;
            color: #0d6efd;
        }

        .nadador-option.all-nadadores {
            background-color: #f8f9fa;
            font-weight: 600;
            border-bottom: 2px solid #dee2e6;
        }

        .nadador-option.all-nadadores:hover {
            background-color: #e9ecef;
        }

        .nadador-record-count {
            font-size: 0.75rem;
            color: #6c757d;
            font-weight: 500;
            background-color: #e9ecef;
            padding: 2px 6px;
            border-radius: 0.25rem;
        }

        .nadador-option.selected .nadador-record-count {
            background-color: #cfe2ff;
            color: #084298;
        }
        .history-btn {
    border: none;
    background: none;
    color: #6c757d;
    transition: all 0.3s ease;
}

.history-btn:hover {
    color: #495057;
    background: #f8f9fa;
}

.history-btn.expanded {
    transform: rotate(45deg);
    color: #dc3545;
}

.history-row {
    background-color: #f8f9fa;
}

.history-container {
    padding: 20px;
    border-left: 4px solid #007bff;
    margin: 10px 0;
}

.history-timeline {
    position: relative;
    padding-left: 30px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.history-item {
    position: relative;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.history-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #dee2e6;
}

.history-item.current-record::before {
    background: #28a745;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-tiempo {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
}

.history-fecha {
    color: #6c757d;
    font-size: 0.9rem;
}

.history-details {
    font-size: 0.9rem;
    color: #495057;
}

.current-record-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.loading-history {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.no-history {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Estilos para sub-pestañas de relevos */
.relevo-subtab {
    cursor: pointer;
    padding: 10px 20px;
    font-weight: bold;
    background-color: #f8f9fa;
    border-radius: 5px 5px 0 0;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
    margin-right: 5px;
}

.relevo-subtab.active {
    background-color: white;
    border-bottom: none;
    color: #3498db;
}

.relevo-subtab:hover {
    background-color: #e9ecef;
}

.relevo-content {
    display: none;
}

.relevo-content.active {
    display: block;
    animation: fadeIn 0.5s;
}
