body {
    background-color: #f8f9fa;
}

.card {
    border-radius: 15px;
    border: none;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.metric-card {
    border-radius: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #0d6efd;
}

.metric-label {
    color: #6c757d;
    font-size: 14px;
}

.history-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.domain-group {
    margin-bottom: 30px;
}

.domain-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #212529;
    padding: 10px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.domain-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.score-badge {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 20px;
    color: white;
    display: inline-block;
    min-width: 45px;
    text-align: center;
}

.score-good {
    background-color: #198754;
}

.score-average {
    background-color: #ffc107;
    color: #000;
}

.score-poor {
    background-color: #dc3545;
}

.loading {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para la tabla de historial */
.table {
    font-size: 14px;
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
    white-space: nowrap;
    padding: 12px 8px;
}

.table td {
    padding: 12px 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr:nth-child(2n) {
    background-color: rgba(0,0,0,0.02);
}

.table tbody tr:hover {
    background-color: rgba(13,110,253,0.05);
}

.table-responsive {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .domain-title {
        margin: 0 -15px;
        border-radius: 0;
    }
}

.delete-analysis {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-analysis:hover {
    opacity: 1;
}

.table tr:hover .delete-analysis {
    opacity: 1;
}

.copy-csv {
    font-size: 0.875rem;
    transition: all 0.2s;
}

.copy-csv:hover {
    transform: translateY(-1px);
}

.copy-csv i {
    font-size: 0.875rem;
} 