/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--ui-space-sm, 12px);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--ui-space-md, 12px);
    padding: var(--ui-space-md, 14px) var(--ui-space-lg, 16px);
    border-radius: var(--ui-radius-md, 10px);
    font-size: 14px;
    font-weight: 500;
    background: var(--ui-text, #1e293b);
    color: #fff;
    box-shadow: var(--ui-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.15));
    backdrop-filter: blur(10px);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
}

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

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

.toast-message {
    flex: 1;
    line-height: 1.4;
}

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

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

.toast-success { background: var(--ui-success, #10b981); }
.toast-error { background: var(--ui-danger, #ef4444); }
.toast-warning { background: var(--ui-warning, #f59e0b); }
.toast-info { background: var(--ui-primary, #3b82f6); }

@media (max-width: 768px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}
