/**
 * Toast Notification Styles
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    background: var(--de-card-bg, #ffffff);
    border-radius: var(--de-radius-md, 12px);
    box-shadow: var(--de-shadow-soft, 0 12px 28px rgba(15, 23, 42, 0.15));
    border: 1px solid var(--de-border, #e5e7eb);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: all;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--de-text, #1f2937);
    font-family: var(--de-body-font, "Inter", sans-serif);
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 8px;
    transition: background var(--de-transition, 160ms ease), color var(--de-transition, 160ms ease);
}

.toast-close:hover {
    background: rgba(53, 204, 88, 0.1);
    color: var(--de-primary, #35cc58);
}

.toast-undo {
    background: var(--de-primary, #35cc58);
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    border-radius: var(--de-radius-pill, 999px);
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: background var(--de-transition, 160ms ease), transform var(--de-transition, 160ms ease);
    font-weight: 600;
}

.toast-undo:hover {
    background: var(--de-primary-dark, #2fa64a);
    transform: translateY(-1px);
}

/* Toast types */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}


