/* Toast notification system */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    background: var(--surface);
    color: var(--text);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    border-left: 4px solid var(--primary);
    opacity: 0;
}

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

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

.toast-content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: 0;
    color: inherit;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    font-size: 1.2rem;
    padding: 4px;
}

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

/* Success */
.toast-success {
    border-left-color: #2fb344;
}
.toast-success .toast-icon {
    color: #2fb344;
}

/* Error */
.toast-error {
    border-left-color: #d63939;
}
.toast-error .toast-icon {
    color: #d63939;
}

/* Warning */
.toast-warning {
    border-left-color: #f59e0b;
}
.toast-warning .toast-icon {
    color: #f59e0b;
}

[data-theme="dark"] .toast {
    background: #1f2937;
    border-color: #374151;
}
