/* Estilos personalizados para la aplicación de Web Scraping */

/* Estilos generales */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
}

/* Cabecera */
header {
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Tarjetas */
.card {
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

.card.shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Listas de enlaces */
.link-list-container {
    margin-top: 1rem;
}

.list-group-item {
    display: flex;
    align-items: center;
}

.list-group-item a {
    word-break: break-all;
    margin-left: 10px;
    flex-grow: 1;
    color: #0d6efd;
    text-decoration: none;
}

.list-group-item a:hover {
    text-decoration: underline;
}

/* Botones */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn i {
    margin-right: 5px;
}

/* Formularios */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Notificaciones y alertas */
.alert {
    border-radius: 8px;
}

/* Tabla de resultados */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #212529;
    color: white;
    font-weight: 500;
    border: none;
}

.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

.table tbody tr:hover {
    background-color: rgba(0,0,0,.075);
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
}

/* Responsividad */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.5rem;
    }
}

/* Barra de progreso */
.progress {
    height: 25px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #0d6efd;
    font-weight: bold;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#links-container, #fields-container, #results-container {
    animation: fadeIn 0.5s ease forwards;
}
