/* Estilos para validación de agente en el formulario de registro */

.validation-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 8px;
}

.validation-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.validation-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.validation-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.validation-message i {
    font-size: 1rem;
}

.validation-message .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos específicos para el campo de agente */
#agentIdGroup {
    transition: all 0.3s ease;
}

#agentIdGroup.show {
    display: block !important;
    opacity: 1;
}

#agentIdGroup.hide {
    display: none !important;
    opacity: 0;
}

/* Mejoras visuales para el select de agente */
#hasAgent {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Estilos para el input de ID de agente */
#agentId {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#agentId:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Texto de ayuda */
.form-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Estados del input según validación */
#agentId.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

#agentId.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}
