/* --- Toast Notification System --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 350px;
    width: calc(100% - 40px);
}

.toast {
    background: #003764; /* Default background */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.toast.success { background: #004d3d; }
.toast.error { background: #601b10; }
.toast.info { background: #003764; }
.toast.warning { background: #604a10; }

.toast.success::before {
    background: #00ff7f;
}

.toast.error::before {
    background: #ff4500;
}

.toast.info::before {
    background: #00d0f0;
}

.toast.warning::before {
    background: #ffcc00;
}

.toast i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.toast.success i {
    color: #00ff7f;
}

.toast.error i {
    color: #ff4500;
}

.toast.info i {
    color: #00d0f0;
}

.toast.warning i {
    color: #ffcc00;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-message {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

.toast.hide {
    animation: toastFadeOut 0.4s ease forwards;
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

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

@keyframes toastFadeOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(20px) scale(0.9);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #toast-container {
        top: 10px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }

    .toast {
        padding: 12px 16px;
    }
}