/* CRM Toast Notifications */
#crm-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
}

.crm-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: none;
    animation: none;
}

.crm-toast--visible {
    animation: crm-toast-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.crm-toast--hiding {
    animation: crm-toast-fade-out 0.3s ease forwards;
}

/* Level colors */
.crm-toast--info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.92));
    border-left: 4px solid #93c5fd;
}

.crm-toast--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.92));
    border-left: 4px solid #6ee7b7;
}

.crm-toast--warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(217, 119, 6, 0.92));
    border-left: 4px solid #fcd34d;
}

.crm-toast__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.crm-toast__text {
    flex: 1;
    word-break: break-word;
}

.crm-toast__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.crm-toast__close:hover {
    color: #fff;
}

/* Animations */
@keyframes crm-toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes crm-toast-fade-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
}
