/* Lead Details - Toast Notification Styles */

.lead-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    min-width: 300px;
    max-width: 500px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-left: 4px solid;
    z-index: 10001;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lead-toast-success {
    border-left-color: #4ade80;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, #1a1a1a 100%);
}

.lead-toast-error {
    border-left-color: #f87171;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, #1a1a1a 100%);
}

.lead-toast-warning {
    border-left-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, #1a1a1a 100%);
}

.lead-toast-info {
    border-left-color: #60a5fa;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, #1a1a1a 100%);
}

.toast-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lead-toast {
        left: 50%;
        right: auto;
        min-width: 280px;
        max-width: calc(100% - 40px);
    }
}

/* Animation for slide out */
@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Legacy support for old custom-toast class */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 90vw;
    background: #1a1a1a;
    color: #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-left: 4px solid;
    z-index: 10001;
    font-weight: 500;
    animation: toastSlideIn 0.3s ease-out;
}

.toast-success {
    border-left-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.toast-error {
    border-left-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
