/* Estilos para notificaciones de error */
.error-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

.error-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e74c3c;
}

.error-tooltip.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Estilo para inputs con error */
.input-error {
    border: 2px solid #cc0000 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Estilo para el select con error */
.select-field.input-error {
    border: 2px solid #cc0000 !important;
    background-color: #fff5f5 !important;
}

/* Estilo para textarea con error */
textarea.input-error {
    border: 2px solid #cc0000 !important;
    background-color: #fff5f5 !important;
}

/* Notificación de éxito mejorada */
.richtext-content.--success {
    background: linear-gradient(135deg, #c5041c 0%, #c50404c2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.952);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

/* Notificación de error mejorada */
.richtext-content.--error {
    background: linear-gradient(135deg, #c5041c 0%, #c50404c2 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 28px;
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.richtext-content.--error ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    list-style: none;
}

.richtext-content.--error li {
    margin: 8px 0;
    position: relative;
    padding-left: 20px;
}

.richtext-content.--error li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
    .error-tooltip {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 250px;
    }
}

/* Notificaciones para el PDF */
.pdf-notification {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-notification--show {
    opacity: 1;
    transform: translateY(0);
}

.pdf-notification--success {
    background: linear-gradient(135deg, #c5041c 0%, #c50404c2 100%);
    color: white;
}

.pdf-notification--error {
    background: linear-gradient(135deg, #c5041c 0%, #c50404c2 100%);
    color: white;
}

.pdf-notification--info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

@media (max-width: 768px) {
    .pdf-notification {
        font-size: 13px;
        padding: 10px 15px;
    }
}
