/**
 * Form Help Texts - Glassmorphism Style
 * Estilos mejorados para textos de ayuda en formularios
 * Aplicable a todos los formularios del sitio ExpoTIC 2025
 */

/* Textos de ayuda mejorados */
.form-text,
small.text-muted,
.form-help-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem;
    font-style: italic;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
    margin-top: 0.25rem;
    display: block;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid rgba(233, 30, 99, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-text:hover,
small.text-muted:hover,
.form-help-text:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(233, 30, 99, 0.5);
    transform: translateX(2px);
}

/* Mensajes de error mejorados */
.text-danger,
.invalid-feedback {
    color: #ff6b6b !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-shadow: 0 0 4px rgba(255, 107, 107, 0.3);
    padding: 0.25rem 0.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 107, 107, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.text-danger:hover,
.invalid-feedback:hover {
    background: rgba(255, 107, 107, 0.15);
    border-left-color: rgba(255, 107, 107, 0.6);
    transform: translateX(2px);
}

/* Mensajes de éxito mejorados */
.text-success {
    color: #90ee90 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-shadow: 0 0 4px rgba(144, 238, 144, 0.3);
    padding: 0.25rem 0.5rem;
    background: rgba(144, 238, 144, 0.1);
    border-radius: 6px;
    border-left: 3px solid rgba(144, 238, 144, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.text-success:hover {
    background: rgba(144, 238, 144, 0.15);
    border-left-color: rgba(144, 238, 144, 0.6);
    transform: translateX(2px);
}

/* Mensajes de advertencia mejorados */
.text-warning {
    color: #ffd700 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
    padding: 0.25rem 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.text-warning:hover {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: rgba(255, 215, 0, 0.6);
    transform: translateX(2px);
}

/* Mensajes de información mejorados */
.text-info {
    color: #87ceeb !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-shadow: 0 0 4px rgba(135, 206, 235, 0.3);
    padding: 0.25rem 0.5rem;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 6px;
    border-left: 3px solid rgba(135, 206, 235, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.text-info:hover {
    background: rgba(135, 206, 235, 0.15);
    border-left-color: rgba(135, 206, 235, 0.6);
    transform: translateX(2px);
}

/* Labels de formulario mejorados */
.form-label {
    color: white !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
}

/* Campos de formulario mejorados */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

.form-control::placeholder,
.form-select::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #e91e63 !important;
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25) !important;
    color: #ffffff !important;
}

/* Campos de solo lectura mejorados */
.form-control:read-only {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed;
}

/* Checkboxes y radios mejorados */
.form-check-input:checked {
    background-color: #e91e63 !important;
    border-color: #e91e63 !important;
}

.form-check-label {
    color: #e2e8f0 !important;
    font-size: 0.9rem;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

/* Botones mejorados */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%) !important;
    border-color: #e91e63;
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%) !important;
    border-color: #c2185b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.8) !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    color: white;
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 1) !important;
    transform: translateY(-2px);
    color: white;
}

.btn-danger {
    background: rgba(220, 53, 69, 0.8) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: white;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 1) !important;
    transform: translateY(-2px);
    color: white;
}

/* Alertas mejoradas */
.alert {
    border-radius: 15px;
    border: none;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #90ee90;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #87ceeb;
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-left: 4px solid #17a2b8;
}

.alert i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px currentColor);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .form-text,
    small.text-muted,
    .form-help-text,
    .text-danger,
    .invalid-feedback,
    .text-success,
    .text-warning,
    .text-info {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .form-control,
    .form-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Animaciones de entrada */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-text,
small.text-muted,
.form-help-text,
.text-danger,
.invalid-feedback,
.text-success,
.text-warning,
.text-info {
    animation: slideInFromLeft 0.3s ease-out;
}
