﻿/* Toast container - fixed at bottom-right */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
}

/* Individual toast */
.toast-item {
    background: #333;
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    line-height: 1.4;
    pointer-events: auto;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Toast variants */
.toast-info {
    background: #1a73e8;
}

.toast-success {
    background: #2e7d32;
}

.toast-warning {
    background: #e65100;
}

.toast-error {
    background: #c62828;
}

/* Dismiss button */
.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

    .toast-close:hover {
        color: white;
    }

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-item.removing {
    animation: slideOut 0.25s ease-in forwards;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    #toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast-item {
        font-size: 0.85rem;
        padding: 12px 14px;
    }
}
