/* ===========================
   BELLA TOAST NOTIFICATIONS
   Tema azul marino premium
=========================== */

.bella-toast-wrapper {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
}

.bella-toast {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(18, 76, 124, 0.22);
    border-left: 5px solid #124C7C;
    border-radius: 22px;
    padding: 18px 18px 16px;
    box-shadow: 0 20px 60px rgba(2, 11, 30, 0.22);
    backdrop-filter: blur(14px);
    color: #102A43;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.45s ease;
}

.bella-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.bella-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.bella-toast-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1E73A8, #124C7C, #071B3A);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 12px 28px rgba(2, 11, 30, 0.28);
}

.bella-toast-content {
    flex: 1;
    padding-right: 10px;
}

.bella-toast-content strong {
    display: block;
    color: #020B1E;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 3px;
}

.bella-toast-content span {
    display: block;
    color: #6B7C8F;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.55;
}

.bella-toast-close {
    border: none;
    background: transparent;
    color: #6B7C8F;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bella-toast-close:hover {
    color: #020B1E;
    transform: scale(1.08);
}

.bella-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #EAF6FF, #1E73A8, #124C7C);
    transform-origin: left;
    animation: bellaToastProgress 5.2s linear forwards;
}

/* Tipos de notificación */

.bella-toast-success {
    border-left-color: #1E73A8;
}

.bella-toast-success .bella-toast-icon {
    background: linear-gradient(135deg, #EAF6FF, #1E73A8, #124C7C);
    color: #FFFFFF;
}

.bella-toast-success .bella-toast-progress {
    background: linear-gradient(90deg, #EAF6FF, #1E73A8, #124C7C);
}

.bella-toast-danger {
    border-left-color: #DC3545;
}

.bella-toast-danger .bella-toast-icon {
    background: linear-gradient(135deg, #F8D7DA, #DC3545);
    color: #FFFFFF;
}

.bella-toast-danger .bella-toast-progress {
    background: linear-gradient(90deg, #F8D7DA, #DC3545);
}

.bella-toast-warning {
    border-left-color: #E5A84B;
}

.bella-toast-warning .bella-toast-icon {
    background: linear-gradient(135deg, #FFF4D6, #E5A84B);
    color: #6B4700;
}

.bella-toast-warning .bella-toast-progress {
    background: linear-gradient(90deg, #FFF4D6, #E5A84B);
}

.bella-toast-info {
    border-left-color: #124C7C;
}

.bella-toast-info .bella-toast-icon {
    background: linear-gradient(135deg, #1E73A8, #124C7C, #071B3A);
    color: #FFFFFF;
}

.bella-toast-info .bella-toast-progress {
    background: linear-gradient(90deg, #EAF6FF, #1E73A8, #124C7C);
}

@keyframes bellaToastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 576px) {
    .bella-toast-wrapper {
        top: 82px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .bella-toast {
        border-radius: 20px;
        padding: 16px;
    }

    .bella-toast-icon {
        width: 42px;
        height: 42px;
    }
}