/* ========================================
   QuantaQ - Toast Notification Stylesheet
   ======================================== */

.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 12px 24px;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideDown 0.3s ease;
    border: 1px solid #e5e7eb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.hide {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.toast-icon.error {
    background: #FEE2E2;
    color: #DC2626;
}

.toast-icon.success {
    background: #D1FAE5;
    color: #059669;
}

.toast-icon.warning {
    background: #FEF3C7;
    color: #D97706;
}

.toast-icon.info {
    background: #DBEAFE;
    color: #2563EB;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

/* Toast types with left border accent */
.toast.error {
    border-left: 4px solid #DC2626;
}

.toast.success {
    border-left: 4px solid #059669;
}

.toast.warning {
    border-left: 4px solid #D97706;
}

.toast.info {
    border-left: 4px solid #2563EB;
}
