/* Unified Toast Notification System */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    cursor: pointer;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    min-width: 280px;
}

.toast-notification.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

/* Type colors using existing theme variables */
.toast-success {
    background-color: var(--toast-success-bg);
    border-color: var(--toast-success-border);
    color: var(--toast-success-text);
}

.toast-error {
    background-color: var(--toast-danger-bg);
    border-color: var(--toast-danger-border);
    color: var(--toast-danger-text);
}

.toast-warning {
    background-color: var(--toast-warning-bg);
    border-color: var(--toast-warning-border);
    color: var(--toast-warning-text);
}

.toast-info {
    background-color: var(--toast-info-bg);
    border-color: var(--toast-info-border);
    color: var(--toast-info-text);
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.toast-message {
    flex: 1;
    word-break: break-word;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: inherit;
    opacity: 0.6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Mobile: full-width at bottom */
@media (max-width: 576px) {
    #toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .toast-notification {
        min-width: 0;
        width: 100%;
    }
}
