/* Estilos adicionales para el panel de diagnóstico */

.diagnostic-results {
    font-size: 0.9em;
}

.diagnostic-results .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.diagnostic-results .list-group-item:last-child {
    border-bottom: none;
}

.diagnostic-results h6 {
    color: #495057;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.25rem;
}

.diagnostic-results .badge {
    font-size: 0.7em;
    min-width: 20px;
}

.diagnostic-results .alert {
    margin-bottom: 0;
}

.diagnostic-results .alert small {
    margin: 0;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Mejoras en tabs */
.nav-pills .nav-link {
    color: #6c757d;
    border-radius: 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Mejoras en cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Mejoras en modales */
.modal-content {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Mejoras en alertas */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Estilos para mensajes de chat */
.message-bubble {
    max-width: 70%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.message-bubble.outgoing {
    background-color: #dcf8c6;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.message-bubble.incoming {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

.message-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Tabla responsive mejorada */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    font-size: 0.9em;
}

/* Botones mejorados */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
}

.btn-sm {
    font-size: 0.8rem;
}

/* Estados de conexión */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background-color: #28a745;
}

.status-indicator.offline {
    background-color: #dc3545;
}

.status-indicator.warning {
    background-color: #ffc107;
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .nav-pills {
        flex-direction: column;
    }
    
    .nav-pills .nav-link {
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .diagnostic-results .row {
        text-align: center;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Animaciones sutiles */
.card, .btn, .alert {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Mejoras en formularios */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}