/* Alert system - Manang Valley luxury toast */

.apple-alerts {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apple-toast {
    width: 340px;
    border-radius: 20px;
    padding: 14px 15px;
    background: rgba(255, 248, 239, .86);
    border: 1px solid rgba(107, 74, 92, .12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 54px rgba(86, 55, 70, .16);
    transform: translateY(-20px) scale(.96);
    opacity: 0;
    animation: appleIn .45s cubic-bezier(.2,.8,.2,1) forwards;
    overflow: hidden;
}

@keyframes appleIn {
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.apple-toast.hide { animation: appleOut .35s ease forwards; }

@keyframes appleOut {
    to { transform: translateY(-15px) scale(.95); opacity: 0; }
}

.apple-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apple-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apple-text strong {
    display: block;
    color: #6B4A5C;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.apple-text p {
    font-size: 12px;
    color: #76696A;
    margin: 3px 0 0;
    line-height: 1.5;
}

.apple-close {
    margin-left: auto;
    border: none;
    background: rgba(107, 74, 92, .06);
    color: #6B4A5C;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    opacity: .72;
    cursor: pointer;
    transition: .2s ease;
}

.apple-close:hover {
    opacity: 1;
    background: rgba(107, 74, 92, .12);
}

.apple-success .apple-icon { background: #7BA46A; color:#fff; }
.apple-error .apple-icon { background:#9F3140; color:#fff; }
.apple-warning .apple-icon { background:#C8A15B; color:#2F2A2A; }
.apple-info .apple-icon { background:#6B4A5C; color:#FFF8EF; }

.apple-progress {
    height: 2px;
    margin-top: 12px;
    background: rgba(107, 74, 92, .09);
    overflow: hidden;
    border-radius: 999px;
}

.apple-progress::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6B4A5C, #C8A15B);
    width: 100%;
}

@keyframes progressAnim {
    from { width: 100%; }
    to { width: 0; }
}

.progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #6B4A5C, #C8A15B);
}

@media (max-width: 575px) {
    .apple-alerts {
        top: 14px;
        right: 12px;
        left: 12px;
    }

    .apple-toast { width: 100%; }
}
