/* Toast Notification - Premium Design */
.toast-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.95), rgba(20, 20, 22, 0.98));
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 20000;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.toast-notification.error {
    background: linear-gradient(135deg, rgba(60, 15, 15, 0.95), rgba(45, 10, 10, 0.98));
    box-shadow:
        0 20px 60px rgba(255, 59, 48, 0.25),
        0 0 0 1px rgba(255, 59, 48, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toast-icon {
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toast-notification.success .toast-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 247, 0.98) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast-notification.error .toast-icon {
    background: linear-gradient(135deg, #FF3B30 0%, #FF453A 100%);
    box-shadow:
        0 4px 16px rgba(255, 59, 48, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.toast-icon svg {
    width: 12px;
    height: 12px;
    stroke: #1d1d1f;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}

.toast-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toast-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 4px 0 0 0;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.1px;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}